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
 Changing short name of book

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
mrandersb Posted - 06/21/2011 : 05:38:25 AM
I have a script like this

range rPageData = [ID000000xData];
rPageData.Name$ = "test";

This should change the short name of the book ID000000xData to test, however it does not do anything. It works fine with

range rPageData = [ID000000xData];
rPageData.LongName$ = "test";

This changes the long name of the book, but how do i change the short name?
5   L A T E S T    R E P L I E S    (Newest First)
mrandersb Posted - 06/22/2011 : 04:28:03 AM
Thanks it works perfectly. The error message is not that important, because it is a very simple renaming script.
cpyang Posted - 06/21/2011 : 7:30:27 PM
I am afraid you have to use older labtalk commands which does not have error checking,



win -r ID000000xData Test;//rename the window ID000000xData to Test




CP
mrandersb Posted - 06/21/2011 : 5:08:07 PM
Ok, I see. Any other way I can change the short name then?
Penn Posted - 06/21/2011 : 06:28:29 AM
Hi,

When the book "ID000000xData" is active, the range you defined and the page object will the same refer to this book. You can also see, in wiki of the page object, that the page.name$ is read only. So, by using it, you can get, but cannot set the short name.

Penn
mrandersb Posted - 06/21/2011 : 05:39:33 AM
by the way, rPageData.Name$ seem to exist because

rPageData.LongName$ = rPageData.Name$ changes the lon name to ID000000xData as expected.

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