DBGrid1 and zeos in BCB6 ?

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Helu Jar
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 17.06.2007, 19:17
Contact:

DBGrid1 and zeos in BCB6 ?

Post by Helu Jar »

I installed Zeos. And I start to build a program which using zeos. But I can't see the datas in DBGrid1 can you help me? I'am using BCB6.
Ne hüsrandır ki; Şark'ın ben vefasız, kansız evladı.
Ser-âp-a Garb'a çiğnettim de çıktım hâk-i ecdâdı.
_________________

my bcb - database desktop - bde blog
my zeos component blog
klchin
Senior Boarder
Senior Boarder
Posts: 65
Joined: 02.09.2005, 06:27

Post by klchin »

Hi,

Did you set the datasource/dataset correctly or
is your query correct?

Regards,
KL Chin
User avatar
cipto_kh
Senior Boarder
Senior Boarder
Posts: 83
Joined: 28.09.2005, 11:22
Location: Indonesia
Contact:

Post by cipto_kh »

Yes, I think klchin is right, I not use BCB here (I use Delphi 7) but as I know the BCB dataset concept is same with Delphi (CMIIW).

So you need to drop TZConnection (Zeos), TZQuery (Zeos), TDataSource and TDBGrid (sorry if the the name is only valid for Delphi, but maybe you can find the similiar component in BCB).

Then make right connection with TZConnection, link your Connection property of TZQuery with that TZConnection.

Write your query in TZQuery, link the Dataset property of TDataSource with TZQuery

Then link the DataSource property of TDBGrid with TDataSource. Set the Active property of TZQuery to true and it will work.

--
Know more from here:
http://firebird-with-delphi.blogspot.com/
http://cipto-kh.blogspot.com/
http://best-dating.blogspot.com/
Helu Jar
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 17.06.2007, 19:17
Contact:

Post by Helu Jar »

These are screenshots:

Image

ZQuery1 SQL code: select * from mesaj

Image

Image

Image

Image

What is wrong?
Last edited by Helu Jar on 18.08.2007, 22:40, edited 1 time in total.
Ne hüsrandır ki; Şark'ın ben vefasız, kansız evladı.
Ser-âp-a Garb'a çiğnettim de çıktım hâk-i ecdâdı.
_________________

my bcb - database desktop - bde blog
my zeos component blog
klchin
Senior Boarder
Senior Boarder
Posts: 65
Joined: 02.09.2005, 06:27

Post by klchin »

Hi Helu Jar,

All of your image files did not show out.

Regards,
KL Chin
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

The don't appear here too.. try to use this service:
http://imageshack.us/
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
Helu Jar
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 17.06.2007, 19:17
Contact:

Post by Helu Jar »

Do they appear now?
Ne hüsrandır ki; Şark'ın ben vefasız, kansız evladı.
Ser-âp-a Garb'a çiğnettim de çıktım hâk-i ecdâdı.
_________________

my bcb - database desktop - bde blog
my zeos component blog
klchin
Senior Boarder
Senior Boarder
Posts: 65
Joined: 02.09.2005, 06:27

Post by klchin »

Hi Helu Jar,

From the screen there were data shown in your component,
only that all your data wer not "char" type. But not sure the
"tarikh" do you put in any valid value/

Can you create a field that was "char" type like length 8 instead
of var char or text base. Or may be you can try to compile the
sample code to verify your data with MySQL 5.

Hope this hint can you.

Regards,
KL Chin
Helu Jar
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 17.06.2007, 19:17
Contact:

Post by Helu Jar »

Thanks.
Ne hüsrandır ki; Şark'ın ben vefasız, kansız evladı.
Ser-âp-a Garb'a çiğnettim de çıktım hâk-i ecdâdı.
_________________

my bcb - database desktop - bde blog
my zeos component blog
Post Reply