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
 Forum for Origin C
 Reorder worksheet layers doesn't work?

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
cjbf Posted - 09/20/2008 : 10:18:40 PM
I'd like to reorder two worksheet layers. In LabTalk, it seems that
book1!page.reorder(1,0) should move layer 1 to 0 (not sure whether layers count from 0 or 1, but I've tried both). But nothing happens.
In Origin C, I have written a function to swap layers:
bool myswaplayers(string WinName,int from,int to)
{Page page(WinName);
return page.Reorder(to,from);
}
but calling that from the script window as myswaplayers("Book1",1,0) has no effect, though with (only) these numbers it returns true.
Am I missing somethig or is there a bug, or is it not valid to do this for anything but a graph?
Thanks, Chris.
2   L A T E S T    R E P L I E S    (Newest First)
cjbf Posted - 09/30/2008 : 07:39:48 AM
Thanks. I've found that book1!page.active=2 etc is actually what I needed when trying to specify column names without layer numbers.
Deanna Posted - 09/22/2008 : 10:47:30 PM
Hi Chris,

We find out that page.reorder() is capable of changing the layer index numbers.

Maybe you are looking for a method to change the positions of the worksheets? We regret to say that this method cannot do that right now. We plan to improve this method so that it has an option to switch the positions of the layers in future. Maybe in future SRs.

Thank you for posting.

Deanna
OriginLab Technical Services

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