[futurebasic] Re: [FB] FB^3 - XREF@

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

From: Chris Stasny <staz@...>
Date: Wed, 12 Jan 2000 08:12:43 -0600
>Can I get an opinion on what would be the best way to convert the FBII
>syntax below into FB^3? Iknow this does not work, but I'm interested in the
>BEST way.
>
>Thanks
>
>David
>
>
>BEGIN GLOBALS
>
>'Record data array stuff
>DIM RECORD positionData                           'record
>   DIM xPos                                        'horizontal axis position
>   DIM yPos                                        'vertical axis position
>   DIM timelog&                                    'time in microseconds
>DIM END RECORD .theData
>
>_bazillion      = 1000000                         'max of 1000s at 1000s/s
>
>DIM gDataArray&;0,gDataHndl&                      'use data handle 
>(nice trick)
>XREF@ gDataArray.positionData (_bazillion)
>
>END GLOBALS
>
>


Try it this way...


BEGIN GLOBALS

'Record data array stuff
begin RECORD positionData                           'record
   DIM xPos                                        'horizontal axis position
   DIM yPos                                        'vertical axis position
   DIM timelog&                                    'time in microseconds
END RECORD

_bazillion      = 1000000                         'max of 1000s at 1000s/s

XREF@ gDataArray(_bazillion) as positionData

END GLOBALS



Best,

-STAZ  ~)~

800.348.2623 Orders  http://www.stazsoftware.com
228.255.7086 FAX     mailto:staz@...