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
drreaf
Posted - 06/10/2008 : 11:28:13 AM Origin Version (Select Help-->About Origin): Origin Pro 7.5 SR6, (B885) Operating System: Windows XP Professional, SP 3
I want to change the contents of named text labels in graph windows which are created from templates (.otp files). Some of the text labels in the templates need to be replaced by actual strings.
I tried to achieve this by the following LabTalk script. However, the "label –n" command treats the message part of the command as literal.
if (exist(%2)==0) { window -t plot %1 %2; // create graph window from template %1 with name %2 %2!page.title = 3; // display name and label %2!page.label$ = %5; // label window }
How can I achieve my goal with variable strings containing the message?
Many thanks in advance, Rainer Facius
2 L A T E S T R E P L I E S (Newest First)
drreaf
Posted - 06/11/2008 : 04:47:58 AM Thank you. It worked out perfectly.
Rainer Facius
greg
Posted - 06/10/2008 : 4:19:54 PM The addition of string datatype did not automatically make all LabTalk commands that had string options work with the new datatype.
As you discovered, the label command does not yet accept string datatyped variables. The old string variables can be used, as in: