Recent

Author Topic: 0000051: Error: identifier not found: TDataSetNotifyEvent  (Read 6715 times)

tatamata

  • Hero Member
  • *****
  • Posts: 732
    • ZMSQL - SQL enhanced in-memory database
0000051: Error: identifier not found: TDataSetNotifyEvent
« on: June 19, 2007, 01:31:52 pm »
Lazarus 0.9.22 (fpc 2.0.4), PostgreSQL 8.2., Windows XP.
When I try to code any event of ZTable component, I get the following error:
"C:\lazarus\components\ZEOSDBO-6.6.1-beta\src\component\ZDataset.pas(54,6) Error: identifier not found: TDataSetNotifyEvent"
So, I can't assign any event to ZTable!

Regards,

Zlatko

Chris37

  • New Member
  • *
  • Posts: 15
    • http://lazarus-fr.espace-malin.fr/
RE: 0000051: Error: identifier not found: TDataSetNotifyEven
« Reply #1 on: June 20, 2007, 10:48:30 am »
Hello,

Sorry for my bad english ;)

The answer on my french website
http://www.espace-malin.fr/tutos/Laz_SQlite3.html

Open Zdataset.pas
And add in uses units Db et Classes

Compile and install and is good !

Chris



Chris

tatamata

  • Hero Member
  • *****
  • Posts: 732
    • ZMSQL - SQL enhanced in-memory database
RE: 0000051: Error: identifier not found: TDataSetNotifyEven
« Reply #2 on: June 20, 2007, 07:36:23 pm »
Chris, thank you for your reply.
Unfortunately, I don't understand French, so I'm not sure that I understood guidance from your web site.
I added "Db" and "Classes" in USES of Zdataset.pas, in the following folder: C:\lazarus\components\ZEOSDBO-6.6.1-beta\src\component.
But, now I have an error when trying to compile:
"C:\lazarus\components\ZEOSDBO-6.6.1-beta\packages\lazarus\zcomponent.pas(11,18) Fatal: Can't find unit ZDataset".

The Zdataset. pas now looks like this:

{                                 Zeos Development Group. }
{********************************************************@}

unit ZDataset;

interface

{$I ZComponent.inc}

uses ZAbstractRODataset, ZAbstractDataset, ZAbstractTable, Db, Classes;

type

  {** Implements an universal SQL query for read/only data access. }
  TZReadOnlyQuery = class (TZAbstractRODataSet)
  published
    property Active;
  {$IFDEF VER130BELOW}
    property IsUniDirectional;
  {$ENDIF}
    property SQL;
    property ParamCheck;
    property Params;
    property Properties;
    property DataSource;
    property MasterFields;
    property MasterSource;
    property LinkedFields; {renamed by bangfauzan}
    property IndexFieldNames; {bangfauzan addition}
    property Options;
  end;

  {** Implements an universal SQL query for read/write data access. }
  TZQuery = class (TZAbstractDataSet)
  published
    property Active;
    property ReadOnly default False;
    property SQL;
    property ParamCheck;
    property Params;
    property ShowRecordTypes;
    property Properties;
    property DataSource;
    property MasterFields;
    property MasterSource;
    property LinkedFields; {renamed by bangfauzan}
    property IndexFieldNames; {bangfauzan addition}
    property UpdateMode;
    property WhereMode;
    property Options;
    property Sequence;
    property SequenceField;
  end;

  {** Implements an universal SQL query for single table access. }
  TZTable = class (TZAbstractTable)
  published
    property Active;
    property ReadOnly default False;
    property TableName;
    property ShowRecordTypes;
    property Properties;
    property MasterFields;
    property MasterSource;
    property LinkedFields; {renamed by bangfauzan}
    property IndexFieldNames; {bangfauzan addition}
    property UpdateMode;
    property WhereMode;
    property Options;
    property Sequence;
    property SequenceField;
  end;

implementation

end.

What's wrong?
Is the problem in paths?
How to fix it?

Thanks in advance,

Zlatko

tatamata

  • Hero Member
  • *****
  • Posts: 732
    • ZMSQL - SQL enhanced in-memory database
RE: 0000051: Error: identifier not found: TDataSetNotifyEven
« Reply #3 on: June 20, 2007, 09:17:14 pm »
Hi, again!
It seems that "Clean recompile" helped. Now it works.
Thank you very much, Chris!

Regards,

Zlatko

P.S. Have you reported this issue to ZEOSlib developer team? I think they should know it before next official Zeos release.

Chris37

  • New Member
  • *
  • Posts: 15
    • http://lazarus-fr.espace-malin.fr/
RE: 0000051: Error: identifier not found: TDataSetNotifyEven
« Reply #4 on: June 20, 2007, 10:18:42 pm »
Hi,

Ok its good ;)

   
Cordially,

Chris

 

TinyPortal © 2005-2018