Re : Initializing variables

2002-03-11 Thread Jan Decroos
Maybe this can help: we use next handler to initailize variables : PutInto youValue,"destinationKinds","destinationNames" with destinationKinds : comma separated list of destination kinds "g" : global, "c" : card fi

Re: Initializing variables

2002-03-10 Thread cowhead
When you have a long list of variables, it might be easier to try an array instead. For example: on mouseUp global myVar repeat with i = 1 to 1000 put 0 into myVar[i] end repeat end mouseUp So, instead of calling your variables x,y,z etc...you can simply call them myVar[1],myVar[2], etc good lu

Re: Initializing variables

2002-03-09 Thread David Vaughan
On Sunday, March 10, 2002, at 02:11 , Jan Schenkel wrote: > Hi Jim, > >> I have a list of variables, say "x,y,z" >> I would like to set each of these equal to zero. > > You might want to replace the script with the > following: > > put "x,y,z" into tList > repeat with i = 1 to 3 > do "put 0

Initializing variables

2002-03-09 Thread Jim Hurley
I have a list of variables, say "x,y,z" I would like to set each of these equal to zero. If I were to use the following: put "x,y,z" into tList repeat with i = 1 to 3 put 0 into item i of tList end repeat This would of course replace the list x,y,z by 0,0,0 and not achieve my objective. Inst