How to change the label of a button to the contents of an editable field?

William de Smet wdesmet at wanadoo.nl
Fri Mar 3 11:05:44 EST 2006


Hi there,

I knew I would be simple: i made a new stack and tried it out and it works.
Thanks to Klaus and Peter.

Greetings,

William de Smet

2006/3/3, Klaus Major <klaus at major-k.de>:
> Dag William,
>
> > Hi there,
> >
> > I am trying to make the label of a button the same as the contents
> > of an editable field.
> > So far I've come up with this:
> > set the label of button "1" to word 1 of field "1" but this returns
> > the word "Field" as label of button 1.
> >
> > I am stuck here but its probably very simple.
> > Is there someone out there who could help me?
>
> the syntax is correct actualy!
>
> Question:
> Do you mean the field/button with the number 1 (first field/button) or a
> field/button NAMED "1"?
>
> In the first case you should omit the quotes, in the second case
> you really should use another name, since you may get very strange
> results
> when naming object with a number!
>
> Just call the field "field1" (button "button1") and then try again.
>
> Works fine here :-)
>
> > greetings,
> >
> > William de Smet
>
> Groetjes
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the Use-livecode mailing list