Yet another menu question

Richard Gaskin ambassador at fourthworld.com
Mon Dec 30 12:23:01 EST 2002


Graham Samuel wrote:

> Well, if I execute in the message box
> 
> put line 1 of the text of button "Options" of card 1 of this stack
> 
> I get the result I expected (a text, say "Show the picture" - without
> the quotes, of course). But if I try to execute
> 
> set line 1 of the text of button "Options" of card 1 of this stack to "Blah"
> 
> I get an error "Object can't set this property".
> 
> What am I doing wrong?

Try this:

  get the text of btn tMyMenu
  put "Blah" into line 1 of it
  put it into btn tMyMenu

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the Use-livecode mailing list