On 5/9/00 8:22 am, Hugh Senior <[EMAIL PROTECTED]> wrote:

> menuPick returns the text of the selected menu item. This is fine, but when
> items are the same (as in a list of names referring to record cards), it is
> not easy to identify _which_ record has been selected:
> 
> John Adams
> Fred Garcia
> John Smith
> John Smith
> Alan Tilby
> 
> on menuPick what
> put lineOffset(what,the text of me) into n
> go cd id (line n of the cdIDs of me)
> end menuPick
> 
> How can we deal with this? Optionally return the lineNumber instead of the
> lineText of the selected menu item?

You can check the menuHistory property of the button - this contains the
number of the item picked.

Regards,

Kevin

> /H
> 
> Hugh Senior
> 
> The Flexible Learning Company
> Consultant Programming & Software Solutions
> Fax/Voice: +44 (0)1483.27 87 27
> Email: [EMAIL PROTECTED]
> Web: www.flexibleLearning.com

Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to