command line arguments - windows - $#

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Wed Apr 24 03:15:49 EDT 2013


I will answer my question myself. ;)

value("$"&i) does return the content of the variable.

Matthias

Am 24.04.2013 um 01:56 schrieb Matthias Rebbe <matthias_livecode_150811 at m-r-d.de>:

> Hi,
> 
> maybe it´s just to late here and i just need some sleep. 
> 
> But for whatever reason i am having problems with the $ command line argument variable under windows.
> 
> In my script i have to check the number of arguments with $#, because the number of arguments may vary.
> 
> I then want to process the arguments in a repeat loop.
> repeat with i = 1 to $#
> -- do something with $i
> end repeat
> 
> But how can i use the values of that command line arguments.
> I tried already
> $i       returns nothing
> value($i) returns nothing
> value($&i) returns only the number
> 
> I am pretty sure in a project long time ago i was able to get the values.
> 
> What am i doing wrong?
> 
> Regards,
> 
> Matthias
> _______________________________________________
> 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