Placing field contents into a button script?

Bob Hartley rev at armbase.com
Sun Jan 30 16:12:07 EST 2005


At 20:51 30/01/2005, you wrote:

>Is it posssible to have the contents of a  field put into a button's
>script... by the way of a script?


sure is.

Have field "newscript" with the new script.
Then use the set script function (not tried it myself yet).

on mouse up
set the script of button 2 to empty -- clear out the script
set the script of button 2 to field "newscript"
end mouse up

Hope that works.

cheers
bob






>thanks
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 28/01/2005


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 28/01/2005




More information about the use-livecode mailing list