On 9 Dec 2005 at 9:45, xstang@post.cz wrote:
but then it doesn't allow me to write variable of BPreal type to text file, I get
dev_gpc!moje\pl_tp.pas:77: argument to `Write' is of wrong type
[...]
It is not that straightforward. "BPReal" is declared as a packed record, containing a packed array of 6 bytes, and you need to use conversion routines to and from "BPReal" to GPC's "Real":
RealToBPReal BPRealToReal
See the source code of the GPC system unit for further information.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/