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

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

From: JoeAtTIME@...
Date: Sat, 27 Feb 1999 22:51:58 EST
>DIM RECORD myRec
>  DIM 30 myName$
>  DIM 15 someInfo$
>  DIM 15 moreInfo$
>  DIM element1%
>  DIM element2%
>  DIM element3%
>DIM END RECORD.myRec
>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?

I think this should do it:
DEF LONGBLOCKFILL(@myArray, _myRec*720, 0)
sets all bytes in the array to 0 so string length bytes will be 0 therefor the
strings = ""

-Joe Lertola