[futurebasic] [FB^3] Filling arrays

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2000 : Group Archive : Group : All Groups

From: "Brian J. Hughes" <BrianHughes@...>
Date: Thu, 25 May 2000 19:51:02 -0700
Is it possible to fill an array with a series of enumerated constants 
like this:


BEGIN ENUM
   _myConstant1 = _"CON1"
   _myConstant2 = _"CON2"
   _myConstant3 = _"CON3"
   _myConstant4 = _"CON4"
END ENUM


DIM myArray(4) As Unsigned Long

Dim i as Unsigned Long
Dim j
j = 0

For i = _myConstant1 to _myConstant4
     myArray(j) = i
     inc(j)
Next

Or do I have to load them into the array manually?

Brian Hughes