Disabling a Save menu item

charles61 cszasz at mac.com
Thu Apr 22 09:32:13 CDT 2010


Mark,

I worked out my problem. I put my code in the openCard handler for each section with changes for the student and adult sections.

Charles Szasz
cszasz at mac.com




On Apr 22, 2010, at 10:02 AM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> "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
> 
> _______________________________________________ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ http://runtime-revolution.278305.n4.nabble.com/Disabling-a-Save-menu-item-tp2020562p2020570.html 
> To unsubscribe from Disabling a Save menu item, click here.
> 


-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Disabling-a-Save-menu-item-tp2020562p2020621.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list