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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 win -r on long name?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
morganico Posted - 11/27/2008 : 08:51:11 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
morganico Posted - 12/05/2008 : 06:11:48 AM
Many thanks
Shirley_GZ Posted - 11/28/2008 : 03:36:09 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000