Getting the line number from "on menupick"

DunbarX at aol.com DunbarX at aol.com
Thu Nov 12 19:00:39 EST 2009


Jacque:

I could not get a valid line number for a submenu. I understand using a 
secondary routine to find   the line number in the button contents, since I can 
find the menuPicked text, but are you saying you can get the line number 
directly?

Craig
In a message dated 11/12/09 6:36:01 PM, jacque at hyperactivesw.com writes:


> 
> After that, you can use offset() to find the line number in the text of
> the button, but you probably won't need to. If the labels are different,
> regular menupick methods will work. Set the itemdelimiter to pipe ("|")
> and read the second "item" of the menupick parameter.
> 




More information about the use-livecode mailing list