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
 Naming a worksheet after creating it

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
oconnor Posted - 12/02/2004 : 09:26:09 AM
Origin Version (Select Help-->About Origin): Origin 7.5
Operating System: Windows XP

Hi,

If I create a worksheet with:

Worksheet wks;
wks.Create( "Origin.otp");

How do I assign that worksheet a name? I have tried wks.SetName("Results"); and Worksheet wks("Results"); followed by wks.Create("Origin.otp"); and neither works.

Thanks,

Rod.
2   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 12/02/2004 : 11:20:09 AM
Hi Rod,

Just wanted to add the following comment:

The name you see on the title bar of the worksheet window (such as Data1) is actually the name of the Window/Page. The Page then contains the worksheet as a layer. There is only one Worksheet Layer per Page, and internally the worksheet layer has the name "Layer1", which is what you will get if you do a wks.GetName().

This is why you need to first get the page and rename the page instead, as Ruthven shows in his post.

Easwar
OriginLab

rlewis Posted - 12/02/2004 : 09:50:22 AM
Try ... Wks.GetPage().Rename("Results");

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