Stephen MacLean wrote:
> Looking to see how I check to see if my standalone was launch via
> command line with a parameter?
>
> I know that when it’s launched via command line with a parameter in
> windows, I will see a $0 (Name of executable) and $1 for the
> parameter.
...
> How would I test
Thanks all!
I am basically doing what Jacqueline does and check to see if empty and then
verify against a list of switches.
It does seem strange that we can’t check for the existence of a variable, but
this works.
Thanks,
Steve MacLean
> On Nov 24, 2018, at 11:35 AM, J. Landman Gay via
How would I test to see if the $1 variable exists?
I don't check for existence, I only check whether it's empty.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 24, 2018 8:04:50 AM bob--- via use-livecode
wrote:
$# tells
$# tells you how many parameters there are for a script. Perhaps if $# > 0
then... instead might work (I’ve not tried that). You might find using
environment() potentially helps as well. The Dictionary has the details. If
neither of those options work let me know. I have another way you could
Hi All,
Looking to see how I check to see if my standalone was launch via command line
with a parameter?
I know that when it’s launched via command line with a parameter in windows, I
will see a $0 (Name of executable) and $1 for the parameter.
Since this is a dual launch able app, double