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
 How can I get the name of a dupilcated window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

zfkum

Germany
6 Posts

Posted - 07/05/2000 :  8:04:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi together,

I need the name of the duplicated worksheet. How can I get the window name?

Ciao,

Mike

zfkum

Germany
6 Posts

Posted - 07/05/2000 :  8:07:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry, I didn't look good enough into the Knowledge Base!
Go to Top of Page

Lorraine

USA
66 Posts

Posted - 07/06/2000 :  12:06:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
When duplicating graph windows in Origin, the new duplicate window remains the active window. When duplicating worksheet windows in Origin the original worksheet becomes the active window again after duplication.

Are you trying to get the name of a duplicate worksheet? In this instance, since the original window becomes the active window immediately after window duplication, the following script shows how to get the name of the new duplicate window by minimizing the original worksheet window.


win -d; //window duplicate
win -i; //minimize active window
%N=%H; //pass the active window name (%H) to a free string variable

or if you want the original worksheet to be the active worksheet in the end after capturing the name of the duplicate window you could use:


win -d; //window duplicate
%W=%H; //capture name of original window
win -i; //minimize active window
%N=%H; //capture name of duplicate window
win -a %W; //activate original window

Sincerely,
Lorraine

[This message has been edited by Lorraine (edited 07-06-2000).]

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