Subject | UDF using Delphi |
---|---|
Author | Ariefn |
Post date | 2003-02-27T20:27:45Z |
Hi all...
I want to convert some types (TDateTime and Float) into string.
I have tried the following using Delphi:
function udf_FormatDateTime(StrFormat:string;aDateTime:TDateTime):PChar; cdecl; export;
begin
Result:=PChar(FormatDateTime(StrFormat,aDateTime));
end;
function udf_FormatFloat(StrFormat:string;Value:Single):PChar; cdecl; export;
begin
Result:=PChar(FormatFloat(StrFormat,Value));
end;
But all didn't work properly.
1. Anything I missed in the functions above ?
2. Can anybody advice me how to make UDF using Delphi ? (Sources, Web sites ?)
3. Is there any 'open-source' UDF available in www I can start learning with ?
TIA.
(I'm using FB 1.0)
[Non-text portions of this message have been removed]
I want to convert some types (TDateTime and Float) into string.
I have tried the following using Delphi:
function udf_FormatDateTime(StrFormat:string;aDateTime:TDateTime):PChar; cdecl; export;
begin
Result:=PChar(FormatDateTime(StrFormat,aDateTime));
end;
function udf_FormatFloat(StrFormat:string;Value:Single):PChar; cdecl; export;
begin
Result:=PChar(FormatFloat(StrFormat,Value));
end;
But all didn't work properly.
1. Anything I missed in the functions above ?
2. Can anybody advice me how to make UDF using Delphi ? (Sources, Web sites ?)
3. Is there any 'open-source' UDF available in www I can start learning with ?
TIA.
(I'm using FB 1.0)
[Non-text portions of this message have been removed]