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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Use of strings with getnumer (getn) command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

andrewdsto

Australia
Posts

Posted - 08/11/2009 :  03:16:58 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1406 Posts

Posted - 08/11/2009 :  12:23:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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);


Go to Top of Page

andrewdsto

Australia
Posts

Posted - 08/11/2009 :  9:08:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks cpyang,
It answers my question and provides a suggestion.

cheers Andrew
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000