Subject | Re: [firebird-support] Need help writing a UDF... |
---|---|
Author | Ivan Prenosil |
Post date | 2005-05-23T11:42:44Z |
>>function Distance(var lon1, lon2, lat1, lat2: real): real; cdecl;I think 'var' is correct, input parameters are always passed by reference.
>
> Kill 'var'. You've declared the UDF as receiving arguments by
> value, not by reference.
Ivan