Recent

Author Topic: Can't find unit ZAbstractRODataset...  (Read 6907 times)

gecob

  • New Member
  • *
  • Posts: 12
Can't find unit ZAbstractRODataset...
« on: March 23, 2006, 02:06:28 pm »
Hi to all!
I've some problems to cennect mysql with zeoslib.
In particular set this option in TZConnection:

Port: 3306
Database: finanze
Hostname: localhost
Password: my_password
Protocol: mysql-4.1
User: root
Properties: Select * from entrate

On click event of a button, I make:
ZQuery1.ExecSQL;

But when I start the application, apears this window:
Code: [Select]

{ Questo file è stato creato automaticamente da Lazarus. Da non modificare!
Questo sorgente viene usato solo per compilare ed installare il pacchetto.
 }

unit zcomponent;

interface

uses
  ZAbstractDataset, ZAbstractRODataset, ZAbstractTable, ZComponentReg,
    ZConnection, ZDataset, ZDatasetUtils, ZPropertyEditor, ZSqlMetadata,
    ZSqlMonitor, ZSqlProcessor, ZSqlStrings, ZSqlUpdate, ZStoredProcedure,
    ZStreamBlob, ZUpdateSqlEditor, ZSequence, LazarusPackageIntf;

implementation

procedure Register;
begin
  RegisterUnit('ZComponentReg', @ZComponentReg.Register);
end;

initialization
  RegisterPackage('zcomponent', @Register);
end.  


And I recive this error:
/home/giacomo/Download/Programmazione/Lazarus/zeos/packages/lazarus/zcomponent.pas(1021) Fatal: Can't find unit ZAbstractRODataset

Why? The install of zeoslib was succesfully complet!
Is there any example on how use mysql with this library?

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Can
« Reply #1 on: March 23, 2006, 08:07:22 pm »
Maybe the error message is a faulty. A select query should be opened not executed. So do not do
Code: [Select]

  ZQuery1.ExecSQL;

but use
Code: [Select]

  ZQuery1.Open;
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

 

TinyPortal © 2005-2018