I have a form and a datamodule.
I am making a connection to a local oracle db and showing the result to a dbgrid.
I am using Zeos connection.
When I compile i have no errors, when I run a "select" i have this error back:
(https://i.postimg.cc/J0HfCn8f/Cattura.png)
Is the problem oracle? I have switched to Lazarus to enjoy zeos connection cause on Delphi community I don't have oracle driver for free. A good reason to know lazarus but on Delphi it was working
This is the code:
unit form1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, DBGrids, StdCtrls,
datamodule1;
type
{ TLogin }
TLogin = class(TForm)
Button1: TButton;
DBGrid1: TDBGrid;
procedure Button1Click(Sender: TObject);
private
public
end;
var
Login: TLogin;
implementation
{$R *.lfm}
{ TLogin }
procedure TLogin.Button1Click(Sender: TObject);
begin
oraclemng.ZQuery1.sql.Add('select * from help');
oraclemng.zquery1.open;
end;
end.
This is the line going in error:
oraclemng.ZQuery1.sql.Add('select * from help');
oraclemng.zquery1.open;[Edited to fix the code tags - please read
How to use the Forum.]