Origin Ver.8.5 and Service Release (Select Help-->About Origin): Operating System:win7
I am trying to put color black to all 100 text objects in a drawing with Labtalk. I used the following string but the final tt$.color=1 does not recognize the text+ii variable despite typing it correctly.
Why it does not work?
for(ii=1;ii<100;ii++) {aa$="text"; bb$=$(ii); tt$= aa$+bb$; type -c tt$; tt$.color=1}
Also, the LabTalk interpreter may be reading tt$ literally as "tt$" and not "text1" as you desire. In these cases, I find the string register variables (e.g. %A, %B, %J, ...) very useful.
I got it to work with both of your suggested changes ; and %. Here is the resulting "good" script: for(ii=1;ii<100;ii++) {aa$="text"; bb$=$(ii); tt$= aa$+bb$; ifn!%(tt$).color=1;}