More hierarchical menu problems

Scott Rossi scott at tactilemedia.com
Fri Feb 8 01:33:01 EST 2002


Recently, Tim wrote:

> I have a button menu with 3 items and two of those items contain 2 sub-items
> each.  The script is fairly straightfoward:
> 
> On menuPick
> switch tChosen
> case "item1"
> statements
> break
> case "item2"
> statements
> break
> case "item3"
> statements
> break
> case "sub-item1a"
> statements
> break
> case "sub-item1b"
> statements
> break
> case "sub-item2a"
> statements
> break
> case "sub-item2b"
> statements
> break
> end switch
> end menuPick
> 
> When I select any sub-items I get statements executed as though I selected
> some other items. The hierarchical menu is configured with returns and tabs
> and looks OK. Could this be a bug?

Try adding the statement you want to switch:

  on menuPick tChosen
              ^^^^^^^
Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: scott at tactilemedia.com
Web: www.tactilemedia.com




More information about the use-livecode mailing list