4.14 FAQ-373 How do I parse out strings?

Last Update: 2/4/2015

The LabTalk string data type has built-in methods. You can view the complete list of String Methods and Properties on the OriginLab website.

The following example will return the filename, TR10MMB, without the path or extension:

filepath$ = system.path.program$ + "Samples\Signal Processing\TR10MMB.dat";
filename$ = filepath.GetFileName()$;
fileroot$ = filename.gettoken(1,.)$;
filename$ = ;
fileroot$ = ;



Keywords:processing, token, method