|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error in UDF
I created this function (Delphi) in a DLL and I declared in a FB 1.5 / 2.0, but when I run the query has error like below, somebody knows why???
DLL code function StringToInteger( StringValor1 : PChar ) : Integer; stdcall; begin try Result := StrToInt( Trim( StringValor1 ) ); except Result := 0; end; end; UDF declaration DECLARE EXTERNAL FUNCTION STRINGTOINTEGER CSTRING(254) CHARACTER SET NONE RETURNS INTEGER BY VALUE ENTRY_POINT 'StringToInteger' MODULE_NAME 'DLLByUDF' Error: ISC ERROR CODE:335544726 ISC ERROR MESSAGE: Error reading data from the connection. STATEMENT: TIBOInternalDataset: "<TApplication>.frmMain.dlgWisql.<TIBOQuery>.<TIBOInternalDataset>." |
|
#2
|
||||
|
||||
|
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Error in UDF |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|