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
 anyone familiar with string arrays

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
Davek Posted - 02/24/2014 : 10:16:34 AM
I'm reading the text from a graph assigning it to %A and then trying to add %A to string array. THis does not seem to work any suggestions much appreciated. The %A and %B are correctly read just not added toe the array, I sure I'm missing something simple.

Script below

shortname.SetSize(0);// clear array
Labels1.SetSize(0); // Clear array
StringArray Labels1;
StringArray ShortName;
doc-e LW
{
%A=plot.text$;
Labels1.Add(%A);
ShortName.Add(%C);
%A=;
%C=;
}

Thanks
DaveK
1   L A T E S T    R E P L I E S    (Newest First)
lkb0221 Posted - 02/24/2014 : 10:43:12 AM
Hi,

I tested your script and didn't see and problem.
Maybe you used the wrong way to read the array?
You need to use "GetAt" method to read a array, for example:

str1$ = shortname.getAt(1)$;
str1$ =;

Zheng
OriginLab

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