[futurebasic] Reading FBII reals

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2001 : Group Archive : Group : All Groups

From: ted spencer <ted@...>
Date: Fri, 02 Mar 2001 23:25:28 -0500
The old GPS mapping app (written in FBII) saved a map file as a list of
points thusly:

WRITE #3,n#(a&),w#(a&),alt#(a&),pstat&(a&)

where n#,w# and alt# are reals for latitude, longitude, and altitude, and
pstat& holds a mess of flags pointing to the right hemisphere and
differential data, among others.

These points are read in with:

READ #4,n#(pnt&),w#(pnt&),alt#(pnt&),pstat&(pnt&).

It's time to convert this thing to FB^3, and, in FB^3, that same READ
statement fetches in 0s for everything but the integer, which is OK.

Is there a nice fix for this?
Failing that, is there a not-so-nice fix for this?
-- 
Ted Spencer; ted@...
-- 
The only thing necessary for Evil to triumph is for Good to do nothing.