Changing Script In Standalone

2006-05-01 Thread Bridger Maxwell
Hey, In one of my programs I use the "Set the script of object to string" alot, but when I recently switched over to 2.7.1 Studio and started to make standalone programs, I noticed that this no longer works. For my test I made a field and two buttons, one button set the script of the other butto

Re: Changing Script In Standalone

2006-05-01 Thread Dan Shafer
Bridger At leat part of the problem is that Revolution does not permit on-the-fly modification of data of any kind in a stack (app) at runtime in the standalone environment. You get around that particular limitation by storing the changeable data in a sub-stack of your app's mainstack and set

Re: Changing Script In Standalone

2006-05-01 Thread Stephen Barncard
It should be mentioned that there are script limits in a standalone. 10 lines, as I remember. sqb Bridger At leat part of the problem is that Revolution does not permit on-the-fly modification of data of any kind in a stack (app) at runtime in the standalone environment. You get around th

Re: Changing Script In Standalone

2006-05-01 Thread Jim Ault
Correct on the 10 'statement' limit. You may need to use create a sub stack, set the script of the stack, then start using stack 'substackname'. You are allowed 50 stacksInUse. >From the Docs (2.6.1 Mac)-- Returns the limits on script length for scripts t

Re: Changing Script In Standalone

2006-05-01 Thread Sarah Reichelt
This is not quite true. Rev does permit modification of data in a standalone, but this new data will not be saved unless it is a separate file to the main program. This can be a sub-stack or any external data storage mechanism. In this case, the script change should happen, provided it fits withi

Re: Changing Script In Standalone

2006-05-01 Thread Dan Shafer
Sarah. Right. A slight nit but worth noting. I suppose there are situations where changing data on the fly and not saving it is useful. Can't think of one off-hand except where I'd use a variable anyway, but On 5/1/06, Sarah Reichelt <[EMAIL PROTECTED]> wrote: This is not quite true.

Re: Changing Script In Standalone

2006-05-01 Thread Sarah Reichelt
Here's an example - I have an app that acts as a clock-timer. It never needs to save any data except the position of the window, which it saves to a preference file. However when it is running, it displays different data every second. On startup, it gets the current time and shows it and then upda

Re: Changing Script In Standalone

2006-05-02 Thread Viktoras Didziulis
Hi, does this mean that it is not possible to create a standalone with a data driven menu ? Like creating a menu from tab delimited file with item names and links to external files that are being constantly updated... Is there any workaround like using htmlText property with hyperlinks within

Re: Changing Script In Standalone

2006-05-02 Thread Martin Baxter
Viktoras Didziulis wrote: Hi, does this mean that it is not possible to create a standalone with a data driven menu ? Like creating a menu from tab delimited file with item names and links to external files that are being constantly updated... Is there any workaround like using htmlText prop

Re: Changing Script In Standalone

2006-05-02 Thread Chipp Walters
Bridger, What you did should work with the following caveats. As Stephen said, the number of lines in your field cannot be more than 10. You may only use 'set the script of' controls with scripts of ten lines or less (not including the handler part if I remember correctly.) So, creating dyna