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