On May 6, 2011, at 8:10 AM, Todd Geist wrote:
The current user guide does have the following section on page 146
*Command-line argument variables*
If you start up the application from a command line, the command
name is
stored in the variable $0 and any arguments passed on the command
line are
stored in numbered variables starting with the *$ *character.
For example, if you start the application by typing the following
shell
command:
myrevapp -h name then the variable $0 contains "myrevapp" (the name
of the
application), $1 contains
"-h", and $2 contains "name".
*Note: *Command-line argument variables behave like global variables
and can
be used
in any handler. However, you do not need to use the *global *command
to
declare them
before using them.
Is this just left over cruft?
Go to the message box stack, click on the 4th symbol from the left
( looks like the Earth, and the flyover should say "Global
Variables" ) and you will see a listing, most of which will be $-types.
Also these are viewable in the Variable Watcher(old versions of Rev)or
the Script Editor under the tab "Variables" at any time.
Perhaps this will help you make sense of the docs. i don't know
enough about shell, etc to help you.
If you declare a global in any script, it should appear in this list.
Relaunching Rev/Livecode will purge these.
Hope this helps.
Jim Ault
Las Vegas
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode