The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 win -r with string as argument
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SimpleSimonSays

Germany
6 Posts

Posted - 01/17/2013 :  11:30:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.0.0 64-bit b45
Operating System: Win 7 64bit

I'm trying to rename a window using a string variable, but I'm stuck.
Example:
str$ = "myTest";

win -r aaa str$; //this renames my Window to str

win -r aaa $(str$); //and this one leads to a window called A

Whats wrong here?

greg

USA
1378 Posts

Posted - 01/17/2013 :  5:56:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Old LabTalk commands can only accept string variables if they are substituted. The proper syntax is
str$ = "myTest";
win -r %H %(str$); //this renames the active window

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000