[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: Newbie question concerning MacPerl::Pick()



At 10.03 +0100 2000.07.10, Alan Fry wrote:
>At 9:46 am +0500 10/07/00, Bruce Axtens wrote:
>
>>Is there any way of limiting MacPerl::Pick() to just one item? At present my
>>users can select more than one item from the picklist and this is definitely
>>not "the right thing to do"!
>
>Could you be more specific? So far as I know MacPerl::Pick() can
>_only_ return just one item from the list, so I don't understand
>exactly what your problem is.

You're both wrong.  :-)  It is context-sensitive.

  $x = MacPerl::Pick("Pick One",  0..9);
  @x = MacPerl::Pick("Pick Many", 0..9);

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org