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
 How to get ColumnInfo user tree?

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
additive Posted - 02/01/2010 : 07:25:59 AM
Origin Ver. 8.1 SR1 / Windows XP

How can I read a ColumnInfo user tree which is set during Import (e.g. TDMS) for each column? I couldn't find the tree structure or storage name documented.

--Michael
2   L A T E S T    R E P L I E S    (Newest First)
additive Posted - 02/01/2010 : 11:06:40 AM
Perfect, thank you!!
I tried it using info_get_section() ... my fault.
easwar Posted - 02/01/2010 : 10:11:59 AM
Hi Michael,

You can access the meta data in column with the get_user_info global function such as below:


    Tree tr;
    string strInfoName = "ColumnInfo";
    if( get_user_info(myCol, strInfoName, tr) )
    	out_tree(tr);


So the information such as from TDMS import is stored with storage name of ColumnInfo.

From script, such as script window, you can view the tree and get values with code such as:


wks.col1.info.tree.=;
wks.col1.info.tree.ColumnInfo.ImportFile$=;


Easwar
OriginLab

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