Disabling a Save menu item

charles61 cszasz at mac.com
Thu Apr 22 09:59:45 EDT 2010


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

I have checked the RevList archives but found nothing that would help me
with this problem! Any suggestions would be greatly appreciated!
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Disabling-a-Save-menu-item-tp2020562p2020562.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list