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
 loading string values into a Dataset

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
mikec Posted - 01/06/2004 : 2:33:46 PM
I'm trying to alter the Automation example to read data from a file, the problem I,m having is this.

I would like the x axis to be titles (strings) as apposed to numerical, however the Dataset template does not allow for string values. I tried having the Dataset declaired as a character array but that I'm having trouble converting the values.

Is there an easier way to do this?


thanks for the help.
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 01/07/2004 : 9:56:39 PM
To put text into a worksheet, you will be better off with defualt column type (Text & Numeric) and just call

BOOL SetCell(int nRow, int nCol, LPCSTR lpcszText);

in worksheet class.

Alternatively, Dataset class also have
BOOL SetText(int nRow, LPCSTR lpcszTextValue);



If you have read a column of Text values from your file, you can also use Dataset class's

BOOL PutStringArray(vector<string>& as, int nRow1=0);



CP




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