Subject tib_script
Author rudi_josic
Hi all

first excuse my english!!

config:
win2k, delphi6, firebird 1.5, ibo 4.3a eval

i'm check if db exist (beforeconnect tib_connection)and if not trying
to create my db using tib_script, something like that:
procedure TDM.DBBeforeConnect(Sender: TIB_Connection);
begin
try
DB.DatabaseName := ExtractFilePath(ParamStr(0)) + 'mydb.gdb';
if not FileExists(ExtractFilePath(ParamStr(0)) + 'mydb.gdb') then
IB_Script1.Execute;
Except
Abort;
Application.Terminate;
end;
End;

but it raise an exception : "exception class : EIB_ISCError with
message 'ISC ERROR CODE : 335544569
dynamic sql error
sql error code = -204
table unknown
dml
at line 1 column 18'

the database is created but empty.

the extrange is that the error is only in runtime, in designtime
(runing the script whit the exxcute button of the tib_script editor)
it works fine whitout any error.

the script was created using IB_SQL tool downloaded from the ibo page
and executing the script using IB_SQL it works fine too.

the dml table is an event handler based on a example from the ibo
sammple directory.

i tryed the yield property of the tib_script in it both values and the
serult was the same.

i don't know what to do, please HELP!!!


but