TZUpdateSQL Editor missing in D5 ??

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
IbeDBob
Junior Boarder
Junior Boarder
Posts: 47
Joined: 27.05.2010, 21:04

TZUpdateSQL Editor missing in D5 ??

Post by IbeDBob »

Hi All,

I am just getting involved with Firebird and Zeos. Steep learning curve but looks like really cool stuff.

I am testing on D5-Ent and I drop a TZUpdateSQL on the form and right click and no "Editor" option. I double-click and I get to the code section for the "AfterDeleteSQL" event just because it is the first on the list of events. But no editor.

Where am I going wrong?

Thanks

Dyslexic Bob
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

On Delphi 4 and Delphi 5 this property is disabled, because of several properties that are missing. Anyway, spending some extra time, change

Open ..\src\component\ZComponentReg.pas

and change

uses
{$IFDEF WITH_PROPERTY_EDITOR}
ZPropertyEditor,
{$IFDEF FPC}
PropEdits,
ZUpdateSqlEditor,
ComponentEditors,
LResources,
{$ELSE}
{$IFNDEF UNIX}
{$IFNDEF FPC}
ZUpdateSqlEditor,
{$ENDIF}
{$ENDIF}
{$IFNDEF VER130BELOW}
DesignIntf,
{$ELSE}
DsgnIntf,
{$ENDIF}
{$ENDIF}
{$ENDIF}
Classes, ZConnection, ZDataset, ZSqlUpdate, ZSqlProcessor, ZStoredProcedure,
ZSqlMonitor, ZSqlMetadata, ZSequence{$IFDEF ENABLE_INTERBASE}, ZIBEventAlerter {$ENDIF};

After that it is necessary change some lines on ZSqlTestForm.pas and ZQuerySQLEditor.pas. Yif you want I can send you that files with changes
IbeDBob
Junior Boarder
Junior Boarder
Posts: 47
Joined: 27.05.2010, 21:04

Post by IbeDBob »

seawolf wrote:On Delphi 4 and Delphi 5 this property is disabled,

...snip

After that it is necessary change some lines on ZSqlTestForm.pas and ZQuerySQLEditor.pas. Yif you want I can send you that files with changes
That would be great thank you.

I also notice that "RequestLive" is mentioned in this great tutorial...
http://zeos.firmos.at/kb.php?mode=article&k=12

...but I do not have that. Is that no longer a Property?

Thanks
Thanks

Dyslexic Bob
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

RequestLive
This has since 6.5.1 be replaced by 'ReadOnly' property. (Of course : this is the negative version of requestlive)

seawolf,
Do these changes impact compatibility with other compilers? If not, we could apply them as a fix to the 6.6 sources.

Mark
Image
Post Reply