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 on long name?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

morganico

10 Posts

Posted - 11/27/2008 :  08:51:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
further to my previous post, i now have it working as a realised that win -r works on the "short name" not the "long name" so it was unhappy that i was trying to rename a graph as the name of an existing worksheet.


string strG1$;
strG1$ = %H;
type strG1$;
plotxy (1:3)!(1,2) plot:=200; //plotxy book (sheets)!(columns) options
win -r %H Gra_%(strG1$);



But....does anybody know how to write to he "long name"? How would the above be achieved on the "long name"? I cannot find this in the help.

Shirley_GZ

China
Posts

Posted - 11/28/2008 :  03:36:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Morganico,

In Origin 8.0, the long name means the label of window.So you can use the following script to change the active window's long name :

range aa = [%H];
aa.label$ = Gra_%H;

Shirley

Originlab Technical Service Team
Go to Top of Page

morganico

10 Posts

Posted - 12/05/2008 :  06:11:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks
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