Author |
Topic  |
|
5*10
Germany
Posts |
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 |
|
Mike Buess
USA
3037 Posts |
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 |
 |
|
5*10
Germany
Posts |
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
USA
3037 Posts |
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 |
 |
|
|
Topic  |
|
|
|