[futurebasic] RE: [FB] Reading FBII reals

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

From: "Edwards, Waverly" <wedwards@...>
Date: Sat, 3 Mar 2001 00:16:47 -0500
I'm not sure how you'd handle this but my guess (big guess) would be that
you would use an FBII app to read the old data, save it in an intermediate
format then write it back out in FB3.  FBII used BCD math and so the format
saved to disk is going to be different than the format FB^3 will read and
use.  I would imagine that someone has already written a program that reads
back from the old format while in FB^3, but thats another guess.

Check out the conversion not on Staz' site.

http://www.stazsoftware.com/fb_conv2.html

W.


-----Original Message-----
From: ted spencer [mailto:ted@...]
Sent: Friday, March 02, 2001 11:25 PM
To: FB^3 net
Subject: [FB] Reading FBII reals


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.


--
To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>