hi!
below is an fblib example code that does not run properly with this error: "Range Check Error". The error appears even if i use {R-}.
Connection, however, is successful. The error appears on this code: 'fbdb.ExecSQL;'.
help please.
thanks

========================================
program testsimple;
uses
SysUtils, FBLSimple;
var
fbdb: TFBLSimple;
conn,user,passwd: string; //connection string
begin
conn := 'localhost:c:\db\juventus.fdb' ;
user := 'sysdba' ;
passwd := 'masterkey' ;
fbdb := TFBLSimple.Create(conn,user,passwd);
try
try
fbdb.Connect;
fbdb.StartTransaction;
fbdb.SQL.Text := 'SELECT * FROM PLAYERS' ;
fbdb.ExecSQL; {cause of error}
while not fbdb.Eof do
begin
WriteLn(fbdb.FieldbyNameAsString('player_id' ));
WriteLn(fbdb.FieldbyNameAsString('name' ));
WriteLn(fbdb.FieldbyNameAsString('number' ));
WriteLn('' );
fbdb.Next;
end;
fbdb.Close;
fbdb.Commit;
fbdb.Disconnect;
except
on E:Exception do
WriteLn(E.Message);
end;
finally
fbdb.Free;
end;
end.