[fpc-pascal] real to integer
Пётр Косаревский
ppkk at mail.ru
Mon May 29 16:16:50 CEST 2006
> The problem is that Apple's universal interfaces also include a
> "round" function, which returns a real instead of an integral type.
How can one find such a thing himself without trial&error?
Some time ago I had a similar problem with "bool DeleteFile(PChar)" function in Windows API and sysutils function "DeleteFile(string):boolean".
"Good" program:
uses windows,sysutils;
const B:shortstring='1.txt';
begin DeleteFile(B); end.
"Bad" program: // Error: PChar expected
uses sysutils,windows;
const B:shortstring='1.txt';
begin DeleteFile(B); end.
While compiler gives a hint about "true" declaration, it does not point to the problematic unit.
More information about the fpc-pascal
mailing list