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
 LabTalk Forum
 Assign Text to 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
jsw Posted - 10/14/2002 : 11:26:27 AM
I want to assign some text to elements of a dataset.
I have a worksheet called test1
The first column is called data1
The column type of data1 has been set to text
I try the following:
test1_data1[1]="aaa"
type $(test1_data1[1])
the type command returns "1"
The element in the worksheet changes to "-" from whatever it was.
I can manually enter text in worksheet positions. The type command always shows "1" however.
If I use numerical values then everything works.

My goal here is that I am using a script to extract data from a collection of worksheets and then at one line to my test1 worksheet for each of the processed worksheets. I want to label each row of the worksheet with the name of the worksheet that the data came from. I am able to get the numerical data into this worksheet, but not the text labels.

Thanks,
Joe
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 10/14/2002 : 1:00:05 PM
Hi Joe,

You need to use the $ symbol when assigning a string to a wks cell...

test1_data1[1]$="aaa";
%A=test1_data1[1]$;
%A=;
aaa

Mike Buess
Origin WebRing Member

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