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
 Failing in Dataset.Attach("[*]*!col(*));

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
Alex-qwerty Posted - 04/22/2008 : 11:11:08 AM
Origin Version (Select Help-->About Origin): v8.0773
Operating System:WinXP SP2

Hi All!
One of my functions in OriginC shold work on different datasets.
I pass parameter of type string like
"[MyBookName]MySheetName!col(MyColumnName)" to this function.
But if this string is longer than 24 chars, method
MyLocalDataset.Attach("[MyBookName]MySheetName!col(MyColumnName)");
returns false. Why?
How can I pass to my functions the names of Books, Sheets and Columns?
Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 04/22/2008 : 8:56:38 PM
Until we add such support, you will need to get the Dataset from a worksheet:



void gd(string strBookSheet = "[Book1]Sheet1", string strCol = "A")
{
Worksheet wks(strBookSheet);
Column cc = wks.Columns(strCol);
Dataset dd(cc);

out_double("first cell = %f\n", dd[0]);
}



CP



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