Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
JokerOne
Posted - 02/17/2016 : 08:45:52 AM Origin Ver. 9 and Service Release 1(Select Help-->About Origin): Operating System: Win 7
I am keen on using tree variables in my LabTalk code. Currently, I noticed, that the String-commands cannot be used as I believed they could be used for string-variables within a tree structure.
For example: tree aaa >>aaa.str1$ = Albert Einstein >>bbb$ = aaa.str1$ >>i1 = aaa.str1.Find("Eins") >>i2 = bbb.Find("Eins") >>i1 = results: -- >>i2 = results: 8
Is there a way, to avoid the workaround to handover the tree-string variable to a dummy-variable prior to such string commands?
Thanks for your help.
P.S.: I tried such things as (aaa.str).Find... or (aaa.str)$.Find... but was not successful, yet.
2 L A T E S T R E P L I E S (Newest First)
JokerOne
Posted - 02/18/2016 : 02:47:11 AM Yes, pretty.
Thank you!
Hideo Fujii
Posted - 02/17/2016 : 10:13:57 AM Hi JokerOne,
The following should work. Please look at the following code:
tree aaa;
aaa.str1$ = "Albert Einstein";
find(aaa.str1$,"Ein")=;
find(aaa.str1$,"Ein")=8