DesignTime and Runtime creata component bugs?

Forum related to version 6.1.5 of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

klchin
Senior Boarder
Senior Boarder
Posts: 65
Joined: 02.09.2005, 06:27

DesignTime and Runtime creata component bugs?

Postby klchin » 18.04.2007, 05:40

Hi,

I having a very strange problem.

Why the design time TZQuery's RequestLive was working,
but not with the run-time created component always false?

Example,


Design Time ---> Working if RequestLive set to "TRUE"

ZQuery1->Connection = g_DbConn[g_DbsCap].pConn;
ZQuery1->SQL->Text = "SELECT * FROM cnpProduct";
ZQuery1->Active = true;

Design Time ---> Not working if RequestLive set to "FALSE"

ZQuery1->Connection = g_DbConn[g_DbsCap].pConn;
ZQuery1->SQL->Text = "SELECT * FROM cnpProduct";
ZQuery2->RequestLive = true;
ZQuery1->Active = true;

Run time create - Not working

ZQuery2 = new TZQuery( this );
ZQuery2->Connection = g_DbConn[g_DbsCap].pConn;
ZQuery2->SQL->Text = "SELECT * FROM cnpProduct";
ZQuery2->RequestLive = true;
ZQuery2->Active = true;

The main issue was the dataset in "READ-ONLY" mode,
I cannot do any thing with the DB grid and navigator.

What is my problem?


Regards,
KL Chin

kmr
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: 12.06.2006, 22:18
Location: Northern Germany (really northern)

Postby kmr » 18.04.2007, 21:33

ZQuery1->Connection = g_DbConn[g_DbsCap].pConn;
ZQuery1->SQL->Text = "SELECT * FROM cnpProduct";
ZQuery2->RequestLive = true;
ZQuery1->Active = true;


Is it just a copy-paste-error that ZQuery2.RequestLive is set to true instead of ZQuery1.RequestLive?

klchin
Senior Boarder
Senior Boarder
Posts: 65
Joined: 02.09.2005, 06:27

Postby klchin » 19.04.2007, 03:36

Hi,

Sorry is my fault during paste the code to the post.

It was ZQuery1->RequestLive := true, not ZQuery2.

I did confrmed again, if default set to "FALSE" at design-time
then set to "TRUE" during run-time will never work.

Regards,
KL Chin


Return to “6.1.5”

Who is online

Users browsing this forum: No registered users and 1 guest