OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
Skip Navigation Links
All BooksExpand All Books
Quick HelpExpand Quick Help
ProgrammingExpand Programming

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


© OriginLab Corporation. All rights reserved.