Re:RAD - Delphi
Quote
"Severyn" <in...@compusat.com.br> wrote in message
news:3b573b1c$1_1@dnews...
Quote
> I do this(Interbase - Register). But when go RAD(Delphi) and use a query
> with this function, receive a error
> "I dont know function".
> When use command select substr(.... , in SGBD Interbase receive the comman
> result.
> Why don't i use the function in Delphi?
The substr function is in the ib_udf file and is not automatically declared
for Interbase. You must register the udf before using it and make sure it is
in the UDF directory under your Interbase installation.
with MyQuery do begin
SQl.Text := 'DECLARE EXTERNAL FUNCTION substr CSTRING (256),' +
'SMALLINT, SMALLINT RETURNS CSTRING (80) ' +
'ENTRY_POINT "IB_UDF_substr" MODULE_NAME
"IB_UDF"';
ExecQuery;
end;
Woody