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
 Use of strings with getnumer (getn) command

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
andrewdsto Posted - 08/11/2009 : 03:16:58 AM
Origin Ver. 8 and Service Release 4(Select Help-->About Origin):
Operating System: win XP
Hi,

Does the getn command allow me to use named stings instead of %a, %b etc
for example

getn (Measurement) %%k
(units) %%l
(event name) %%m
(input strings);

In this example I want to replace %k, %l and %m with my real string assignments.
So instead of %k I would use the string measurement$,
instead of %l I would use units$ and instead of %m I would use name$.

But I cannot get this to work with the getn command.

Is it possible to do this or must I use %k, %l, %z, %a, etc and then reassign them to the strings (measurement$, name$ etc) I want to use?

I would like to be able to do something like below
getn (Measurement) %%(measurement$)
(units) %%(units$)
(Event name) %%(event$)
(input strings);

I know I can use getstring command but that is only for one string at a time.

thanks Andrew
2   L A T E S T    R E P L I E S    (Newest First)
andrewdsto Posted - 08/11/2009 : 9:08:54 PM
Thanks cpyang,
It answers my question and provides a suggestion.

cheers Andrew
cpyang Posted - 08/11/2009 : 12:23:18 PM
Good suggestion. We will try to put this into the upcoming 8.1 release.

We will make it work like this(no %% needed)


getn (Measurement) measurement$
(units) units$
(Event name) event$
(input strings);



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