I’m new to delphi, and I like it very much, I’m working on a project in delphi 5 and I ran over some code that goes like this:
{$DEFINE DB_OTHER}
var aquery: {$IFDEF DB_MSACCESS}TAdoQuery;{$ENDIF}{$IFDEF DB_OTHER}TIBDataset;{$ENDIF}
...
with aquery do begin
...
ExecSQL; <= here is the problem
...
end;
the code uses two conditional defines, first one works perfectly, but the other one makes the compiler go crazy! it says that “ExecSQL” is a undeclared identifier for some reason…
The code should compile flawlessly, but for some reason, it screams that ExecSQL is not correct, any help is welcomed.
IBX Update download: here