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
 Store additional info in 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
TreeNode Posted - 02/28/2011 : 08:51:12 AM
Origin Ver. and Service Release: Origin 8 SR6
Operating System: Win XP

Hi,

I want to store additional information in a Worksheet like a type number, so that I can
check at every time, which type of data it holds, for example.
I dont want to use the name for this issue, because the name should stay human readable.
Is there another data member in Worksheet class (or perhabs Layer class) I can use for my intention?

I found, that PageBase class for example provides the method PageBase::GetType()
Would be great if other classes, like Worksheet would have a data member, where user could
store a number, or a vector<int> to store more than one number, to get additional information about
this object, at any time.

Anybody an idea to succeed with this?

|-- TreeNode
...|-- a??
...|-- ha!!
4   L A T E S T    R E P L I E S    (Newest First)
darronwolflx Posted - 03/22/2011 : 4:36:26 PM
Hi Penn,
Thanks a lot for sharing the solutions. I checked the links and it helped me a lot, being new to all these it was an enriching experience to learn from the comments.
Penn Posted - 03/02/2011 : 9:05:13 PM
Hi TreeNode,

This is by designed, it does not allow containing space in storage name. We have updated our our document about this, see here. Thank you for pointing this out.

Penn
TreeNode Posted - 03/01/2011 : 05:04:40 AM
Thank you very much!
It works fine. But I think there is a bug, when strStorageName contains 'space'
like:
strStorageName = "Data info";

Then the PutBinaryStorage() method fails. When using this name:
strStorageName = "DataInfo";

everything is ok.

|-- TreeNode
...|-- a??
...|-- ha!!
Penn Posted - 03/01/2011 : 01:20:36 AM
Hi TreeNode,

Maybe you can try to use the methods about storage in OriginObject class, such as GetBinaryStorage, PutBinaryStorage, etc. You can see some sample code here.

Penn

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