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
 Set a name to an created worksheet

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
5*10 Posted - 08/17/2005 : 10:11:09 AM
Origin Version (Select Help-->About Origin):originpro 7g SR4
Operating System:win 2000

Hi,

i just tried to find the answer of the following question in this forum, but it doesn't work.
So, here my question:

Is it possible to name a in originC created worksheet, so that I see it in the project explorer. And that it is not there named like data1, data2....

or

if not, is it possible to rename an active window in Labtalk with a fixed name, like "results" or so on, wich is set in the Labtalkskript!!

greets 5*10
3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 08/18/2005 : 07:24:14 AM
This will do the same thing in Origin C...

WorksheetPage pg = Project.Pages(); // active wks
if( pg ) pg.Rename("NewName");

Mike Buess
Origin WebRing Member
5*10 Posted - 08/18/2005 : 03:18:52 AM
Hi Mike.

Thank you for your direct answer!!
It works, but it isn't the funktion i need, because I want to write afterwards in the worksheet.
But I have to use LabTalk, so I simply rename the aktive window after creating it.
I think about it, after I finished work yesterday! And in Labtalk the name of the aktive window is stored in %H.
So I use the LabTalk-Function win -r %H "NewName".

cu 5*10

Mike Buess Posted - 08/17/2005 : 2:25:27 PM
WorksheetPage pg;
pg.Create("Origin"); // create from default template with default name (Data1, Data2, ...)
pg.Rename("NewName"); // rename as NewName

Mike Buess
Origin WebRing Member

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