Disabling a Save menu item

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Apr 22 10:02:35 EDT 2010


"File" (with quotes)

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

We have updated TwistAWord. Download TwistAWord 1.1 at http://www.twistaword.net

Op 22 apr 2010, om 15:59 heeft charles61 het volgende geschreven:

>
> I have trying to devise a script to disable a Save menu item when  
> the user is
> on a certain card. My project has two sections: Student and adult. I  
> want to
> disable the Save Menu for Adult when the user is on a student card.  
> I tried
> the following and variants of it but I get an error message when I  
> try to
> compile the code:
>
> button "File": compilation error at line 108 (Expression: double  
> binary
> operator) near "is", char 13
>
> Here is my code in the menu bar:
>
> case "Save File for Student"
>         if card is "adult"
>         then
>            disable menuItem 2 of button File of group "menubar 1"
>         end if




More information about the use-livecode mailing list