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
 Custom drop down list for 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

Nickos23

2 Posts

Posted - 03/03/2012 :  12:36:06 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I want to create a drop down list for GetNumber command.

It is written in LabTalkHelp:

A drop down list can also be specified and the variable will represent the selection index in the list. In this case, you must first put the list in a string variable, and specify the character for the string variable after the ":".

I don't know how to do this - "put the list in a string variable".

I would be grateful for any help or an example

Nickos23

2 Posts

Posted - 03/04/2012 :  12:28:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The problem is solved!
Go to Top of Page

JokerOne

Germany
58 Posts

Posted - 03/03/2016 :  10:29:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I found this old message, which exacly meets my current needs.

Unfortunately, I have not experienced the enlightment, that Nickos had some years ago.

Could anybody help me out?

Thanks
Go to Top of Page

JokerOne

Germany
58 Posts

Posted - 03/03/2016 :  10:33:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ahh, now I got it as well!

The pipe is the magic letter to use:

string_list$ = A|B|C|
getn (Whatever) results_variable:string_list$

A year old question finally solved...
Go to Top of Page

luismramirezr

Brazil
7 Posts

Posted - 04/16/2016 :  11:57:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by JokerOne

Ahh, now I got it as well!

The pipe is the magic letter to use:

string_list$ = A|B|C|
getn (Whatever) results_variable:string_list$

A year old question finally solved...



Thank you!
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