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
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.