Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: Windows 10
Hello,
I need to replace a letter in several text objects in multiple graphs. All labels I'm interested in share a partial name, which is Temp (Temp1, Temp2, etc.).
This would be the script for 4 labels:
loop (i,1,4)
{
string name$ = Temp$(i);
string lab$ = %(name$).text$;
lab2$ = Substitute(lab$,°,º,1)$;
%(name$).text$=lab2$;
}
}
Which works. My problem is, the number of TempX labels is variable, so I would need a way to count how many there are to tailor the loop command.
I think it should be relatively obvious, but I have been unable to find out how.
Thank you.