[futurebasic] Re: [FB] How to reinit array

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 1999 : Group Archive : Group : All Groups

From: BMichael@...
Date: Sat, 27 Feb 1999 23:24:20 EST
>DIM myArray.myRec (720)
>
>I want to be able to reset all str$ to "" and all elements% to = 0 for 
>each of the 720 reiterations of the array without a FOR - NEXT loop. Can I?

Possibly... I haven't tried this, but it _should_ work. You'd have to 
check the values to make sure they are correct. Be careful to verify that 
it doesn't also zap any variables _after_ myArray!

numBytes% = _myRec * 721     ' don't forget if arrays start at zero...
DEF BLOCKFILL(@myArray(0),numBytes%,0)

Bill