I want to take a string "Some_string_here_1508_0" and change it to "Some_string_here_1508_1". I KNOW there are string functions other than splitstring that can do this, or can split a string up by position, not by a delimiter. What are those functions or what help file should I look at? I've tried looking in both the command help and the manual but can't find exactly what I want.
Basically I want to save computational power and change the number instead of running another wavelist. EDIT: The basenames aren't exactly the same, or else I'd just run wavelist with a few "*."
Don't know if that's actually quicker computationally than running another wavelist, but considering I have hundreds of waves in the data folder, I think this may be quicker.
Also look at sscanf.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
April 6, 2015 at 10:42 am - Permalink
Just did
variable lengthOfString=strlen(stringVar)
string otherVar = stringVar[0,lengthOfString-2] + "1"
otherVar = replacestring("String","",stringVar)
Don't know if that's actually quicker computationally than running another wavelist, but considering I have hundreds of waves in the data folder, I think this may be quicker.
April 6, 2015 at 11:34 am - Permalink