In labtalk - how to delete the last character of the longname? My script works over many worksheets and my goal is to add a string fragment to the longname of two columns on each worksheet, but the last character (created at import) should be erased before the concatenation occurs.
Origin Ver. OriginPro 2022 (64-bit) SR1 Operating System: windows 10
Col(A)[L]$ refers to long name of column A. https://www.originlab.com/doc/en/LabTalk/ref/Column-Label-Row-Characters There are many string related labtalk functions originlab.com/doc/en/LabTalk/ref/String-obj So write col(A)[L]$=Left(col(A)[L]$,len(col(A)[L]$)-1)$ to keep left length-1 chars.
Some tips In google search. Start the google search with originlab labtalk, e.g. originlab labtalk sheet name, usually u can find labtalk related info.
if you type wks.= // it will show all properties for wks.
Thanks, I tried that before, and the sheets ended up named Col(A)[L] instead of the actual value of the longname (maybe I didn't include de $ mark?). I tried it again and it worked just fine. (I really try with the help, but it is not straightforward.)
Some tips In google search. Start the google search with originlab labtalk, e.g. originlab labtalk sheet name, usually u can find labtalk related info.
if you type wks.= // it will show all properties for wks.