Hi all,
Obviouly I missed the subject: apoplogizes to you, Emilio :-)
Reminder from the docs:
When using a standalone application, an object's script property may
not be set to a string containing more than ten statements. This
limit is set by line 1 of the scriptLimits function. (This does
]
wrote:
From: Rob Cozens [EMAIL PROTECTED]
Subject: Re: stumped: set script of buttons at runtime - solution A
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii; format=flowed
Eric,
The thing I hadn't figured
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
Hi Emilio,
As you say:
However, if I open the stack using the go command from within
another stack, the above makeButton command does not set the script
property of the buttons and hence none of them work.
I guess it's a defaultStack issue: your script does not find the
button
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
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
Hi Eric,
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??
Runtime changes to scripts by standalones are subject to the 10-line
restriction the applies to the do command.
If you are not building the new
Thanks for responding fellas,
From your unanimous replies it seems that the 60 lines of script I
was trying to set at runtime went over my limitpardon me for
saying, but...:(
anyway, what Rob mentions below sounds like what I might need to do.
The thing I hadn't figured out that lead
Eric,
The thing I hadn't figured out that lead me down the present path was
that I couldn't figure out how to add the script to the template button.
If you are building the script at runtime, my approach won't work. If
you're selecting from a finite number of pre-written scripts, store each
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
10 matches
Mail list logo