command line parameter in a variable
Scott Morrow
scott at elementarysoftware.com
Sat Jun 9 23:38:33 EDT 2007
Ah, I forgot to put the dollar sign in quotes! Thanks.
-Scott Morrow
Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email scott at elementarysoftware.com
-----------------------------------------------------------------
On Jun 9, 2007, at 2:18 PM, Trevor DeVore wrote:
> On Jun 9, 2007, at 1:30 PM, Scott Morrow wrote:
>
>> I'm trying to write a loop for multiple command line parameters
>> such as
>>
>> $1
>> $2
>> $3
>> < etc >
>>
>> How can I do this using a variable for the number such as
>>
>> $i
>
> Use "value":
>
> repeat with i = 1 to 3
> put value("$" & i) into theValue
> -- Do something with the value
> end repeat
>
> --
> Trevor DeVore
> Blue Mango Learning Systems
> www.bluemangolearning.com - www.screensteps.com
> trevor at bluemangolearning.com
More information about the use-livecode
mailing list