stumped: set script of buttons at runtime

Klaus Major klaus at major-k.de
Thu Jun 16 11:58:54 EDT 2005


Hi Emilio,

> Hi Emilio,
>
>
>> Hi All,
>> I've been battling this problem for a few days and have no idea  
>> where to look next.  Originally I thought it had to do with global  
>> variable issues between stacks.  However, after MUCH hair-pulling  
>> it appears the problem has to do with setting the script property  
>> of buttons dynamically ...or so I think...Keep in mind the  
>> following code works ...
>> ...
>> and hence none of them work.  If I set the visibility of the  
>> original hidden button to true, it works fine.  So for some  
>> reason, setting the script of a button at runtime does not seem  
>> possible.  Does anyone know what I'm doing wrong here??
>>
>
> you are doing nothing wrong actually!
> You just have been hit by the "Scriptlimits", sorry :-/
>
> See the "Note" in the docs for "script".
>
>
>> Completely frustarted,
>> Emilio

after reading your mail a second time, i am not sure, if i understood  
your problem correctly :-/
Maybe not...?

How many statements/lines does the script have that you set dynamically?


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list