Putting the menuItem number into a variable

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Putting the menuItem number into a variable

Post by gyroscope » Fri May 16, 2008 3:10 pm

Hi, in my first project, for a certain reason I need to find out the menu item line number that the user picks so that I can put it into a variable.

I thought it would be relatively easy but whatever I do isn't correct. I've tried quite a few variations of the following (this appears in the MenuPick handler of an Option Menu button):

Code: Select all

 -- pseudocode
put the number of the MenuItem (--of me?--) into lAhGoOnTellMe 
as " put the number of MenuItems into...." works, I thought the above would as well...

Grateful for help here please!

:)

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Fri May 16, 2008 3:18 pm

Hola muchacho,

you are looking for:

Code: Select all

...
put the menuhistory of me into lAhGoOnTellM
...
Best

Klaus

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Fri May 16, 2008 3:25 pm

Thank you for such a quick reply and answer, Klaus.

I've been "staring at that wall" for twenty minutes but now I'm off again!

Much appreciated.

:)

Post Reply