switch
Chipp Walters
chipp at chipp.com
Sun Mar 19 13:24:55 EST 2006
Hi John,
While technically, There's not a difference between a local and 'temp'
variable, I do make such a distinction in naming them.
This is because local variables may be declared and then shared between
handlers/functions of the same object script. This is handy when
creating library scripts. You can think of them as private globals if
you wish.
So, if I declare at the top of my script (outside handlers and functions):
local lServerURL,lFtpURL
I can then use these variables inside any handler/function in my script.
It is handy for many things, and you don't have to worry about any sort
of global conflicts.
best,
Chipp
John Tregea wrote:
> Dear Jim, Chipp and James,
>
> I thought it must be something like that but tend to call 'temporary'
> variables 'local' variables, so I didn't guess the connection.
More information about the use-livecode
mailing list