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 for Programming
 Forum for Origin C
 Set a name to an created worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

5*10

Germany
Posts

Posted - 08/17/2005 :  10:11:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 08/17/2005 :  2:25:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

5*10

Germany
Posts

Posted - 08/18/2005 :  03:18:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 08/18/2005 :  07:24:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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