|
Morten Apprentice
Joined: 17 Feb 2001 Posts: 119 Location: Denmark
|
Posted: Wed Feb 18, 2004 1:43 pm
#pick and stringlist |
are there any way you can #pick to work with a stringlist?.
i have an alias where i add forms to a list using this command:
#Additem forms "%-1"
now i want a pick box to come up when i press a key (that part is easy )
where i can select one item on the list and press enter (ok)
i have tried this:
#pick {p:Select an action:} {o:1} @formPick
where i created a second variable called formPick using this:
#forall @forms {#additem formPick {%i:use form preference with %i}}
but this dont work.
Any help? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Feb 18, 2004 3:14 pm |
Yes, you can use a stringlist, but you need to add the the p and o modifiers to the stringlist too:
#VAR formPick "p:Select and action:"
#ADDITEM formPick "o:1"
#FORALL @forms {#ADDITEM formPick {%i:use form preference with %i}}
#PICK @formPick |
|
|
|
Morten Apprentice
Joined: 17 Feb 2001 Posts: 119 Location: Denmark
|
Posted: Wed Feb 18, 2004 3:42 pm |
ahh that was the way.
as allways thanks for the help |
|
|
|
|
|