Scripts limits in stand alones (was: Re: stumped: set script of buttons at runtime)

2005-06-17 Thread Eric Chatonet
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

Re: stumped: set script of buttons at runtime - solution A

2005-06-17 Thread Frank Leahy
] 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

stumped: set script of buttons at runtime

2005-06-16 Thread Emilio Gagliardi
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

Re: stumped: set script of buttons at runtime

2005-06-16 Thread Eric Chatonet
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

Re: stumped: set script of buttons at runtime

2005-06-16 Thread Klaus Major
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

Re: stumped: set script of buttons at runtime

2005-06-16 Thread Klaus Major
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

Re: stumped: set script of buttons at runtime

2005-06-16 Thread Rob Cozens
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

stumped: set script of buttons at runtime - solution A

2005-06-16 Thread Emilio Gagliardi
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

Re: stumped: set script of buttons at runtime - solution A

2005-06-16 Thread Rob Cozens
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

Re: stumped: set script of buttons at runtime

2005-06-16 Thread Sarah Reichelt
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