Hi Michael,
PICK$ will select the nth item from the list that follows the n.
Consider PICK$(n, "aaa", "bbb", "ccc", "ddd", "etc")
If n is 1 then PICK$ will return "aaa" because it is the 1st item in the list. If n is 5
then "etc" would be returned because it is the 5th item. The parameters of PICK$ can be of
any type: they will be coerced into strings. Expressions can be supplied, for example, dev$ &
file$.
Ah OK, thanks.
There is a particular problem that PICK$ may help us to solve. Occasionally,
we may want to iterate through a list of items. If these items are strings,
then we may well reach for a FOR loop and do something like . . .
(...)
Which version do you prefer?
I'd probably use an array.
Thanks though, this looks like an interesting keyword!
Wolfgang
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm