Geoff Canyon gcanyon at
Fri Feb 15 10:32:01 EST 2002

At 4:32 AM -0800 2/15/02, Robert Presender wrote:
>I want to determine the number of menu items of a particular menu by script but have been unable to find a Transcript syntax that will do it. ( Mac OS 9.2.2, RR 1.1/1.1.1b1)
>Would like to do something like this:
>on mouseUp
>get the number of menuItems of menu "XXXX"
>put it into tNum
>end mouseUp

In Revolution, menus are just buttons with a costume on :-) so you can just say

put the number of lines of btn "XXXX" into tNum



More information about the Use-livecode mailing list