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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Select window by index?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

matzmatz

Germany
1 Posts

Posted - 07/25/2011 :  6:43:33 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi, is there any possibillity to select a window by index?
In the help I found this to select a wondow by short name: win -a book1;
But Im looking for something like the following code for windows, to select a window by index:
page.active = 2;
Thank you from Germany!
Matz

Hideo Fujii

USA
1582 Posts

Posted - 07/26/2011 :  11:17:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Matz,

If my understanding is correct, windows (workbooks, graphs, etc.) 
inside Origin are not "indexed" for management. You can identify 
windows by enumeration like:
  ii=2;
  window -a book$(ii);

By the way, if you have questions about scripting, posting to 
LabTalk Forum is a better way to go as it would get exposed to more 
experienced readers.

--Hideo Fujii
OriginLab
Go to Top of Page

eparent

118 Posts

Posted - 07/26/2011 :  11:46:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by matzmatz

Hi, is there any possibillity to select a window by index?


If you use Origin C then you can use the Pages property of the Project class. The Pages property is of type Collection. The first example on this page shows how to do what you want using Origin C.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000