Subject Re: [firebird-support] Need help writing a UDF...
Author Dimitry Sibiryakov
On 23 May 2005 at 11:57, Hugo Hiasl wrote:

>function Distance(var lon1, lon2, lat1, lat2: real): real; cdecl;

Kill 'var'. You've declared the UDF as receiving arguments by
value, not by reference.

>function Distance(var lon1, lon2, lat1, lat2: real): real;

'Real' is version-specific type. You'd better use Double...
--
SY, Dimitry Sibiryakov.