dynamic controls

Jan Schenkel janschenkel at yahoo.com
Thu Feb 6 05:34:01 EST 2003


--- Geoff Canyon <gcanyon at inspiredlogic.com> wrote:
> > But runtimes/standalones will have the 10
> statement limit
> > just like the starter kit.
> >
> > This ONLY appeals to new created objects (during
> runtime).
> >
> 
> That last bit isn't quite clear (it fooled me until
> I thought about 
> it). The ten line limit applies in the Starter Kit
> and in standalones. 
> The ten line limit applies whenever you are trying
> to set the script of 
> any object, newly created or not. Objects that have
> existing scripts 
> longer than ten lines will continue to work. It is
> only when trying to 
> set the script of an object (any object) that the
> limit applies.
> 

Of course if you can know in advance which script they
need, you can always 'clone' a library control, and
then it gets that script without violating the 10-line
limit.
So with a little bit of creative scripting you can :
- prepare a 'library control' in the RunRev IDE
- 'clone' this library control at standalone runtime
- set a few custom properties to modify its behaviour
Admittedly, not as elegant as being able to change
scripts dynamically, but it just might do the trick
for you -- all depends on the purpose.

Jan Schenkel.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the use-livecode mailing list