Changing Script In Standalone

Dan Shafer revolutionary.dan at gmail.com
Tue May 2 02:51:55 EDT 2006


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 <sarah.reichelt at gmail.com> wrote:
>
> 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 within
> the scriptLimits, but the new script will not be saved if the stack
> being modified is part of the main application file.
>
> Cheers,
> Sarah
>
> On 5/2/06, Dan Shafer <revolutionary.dan at gmail.com> wrote:
> > 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 setting
> up
> > standlone settings so that it creates that stack separately as well.
> Then
> > you may be able to tell a button in mainstack to set a script in a
> button of
> > a substack but I haven't tested that idea.
> >
> > On 5/1/06, Bridger Maxwell <bridgeyman at gmail.com> wrote:
> > >
> > > 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
> > > button
> > > to the field.  I typed a simple on mouseUp handler that answers a
> message.
> > > It worked when I did it in the development environment, but not as a
> > > standalone.  Does this mean that I can't change script from the
> > > user-interface after it has been saved as a standalone?  Can someone
> give
> > > me
> > > the basic rundown of how Revolution compiles stacks into a standalone?
> > >
> > >   TTFN (ta-ta-for-now)
> > >    Bridger
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
>From http://www.shafermediastore.com/tech_main.html



More information about the Use-livecode mailing list