Passing Variables in a non-CGI LC Server?

Mike Bonner bonnmike at gmail.com
Thu Apr 6 19:14:29 EDT 2017


I was mainly referring to the fact that an lc server script isn't
restricted to a single script file, so scope still matters.  (Clarity is
not my strong suit)  So as in a standalone etc, to use a global one would
need to declare it in each script where it needs to be available, whether
server or not.  Sorry for my clear as mud first effort.

On Thu, Apr 6, 2017 at 4:52 PM, Richard Gaskin via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Rick Harrison wrote:
>
> > So the answer is - only in a stack.
> > Perhaps the dictionary should have
> > a comment stating or clarifying that fact.
>
> Mike said:
>
>    Can't answer the rest, but as for the global.. Since you can utilize
>    stacks with server, you could declare a global just as you would
>    normally, in any scripts that needed it, and it would work just like
>    in lc proper.  It would only persist during the run of that
>    particular instance.
>
> LiveCode globals are available to all scripts that declare them within the
> LiveCode process.
>
> I think maybe the reason Mike's reply was focused on stacks is that it's
> not clear what you're doing.
>
> Your original post said:
>
>   I have a few variables I would like to pass from one <?lc..
>   server script to another using a web  browser with an lc
>   server that is not configured to be a cgi server.
>
> Since LC Server runs as a CGI, and even if you were using a standalone on
> the server as a daemon it would still be on the server and not in the
> client browser, I can't figure out what that sentence means.
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list