[futurebasic] Re: [FB] [FB^3] Arrays of structures

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

From: Charlie Dickman <charlied@...>
Date: Sat, 29 Jan 2000 14:51:01 -0500
>  >In FB^3 Is it possible to DIM arrays of structures as in
>...
>
>
>Charlie
>
>What would one use arrays of structures for? What sort of tasks or whatever
>would need this, or what could this be used for?
>
>Peter

Peter,

I am writing an application that needs to display 1 of 14 pictures in 
an area of its window depending on what state the program is in. It 
does this every 6 ticks. Using a pict field causes really bad 
flashing of the pictures so I'm implementing this feature using 
GWorlds. There are 14 of them and each needs a GWorld and a 
rectangle. It's a lot easier to define an ENUMeration and work with 
subscripts than it is to have SELECT statements with 14 cases each.

Charlie Dickman
charlied@...