DBGrid1 and zeos in BCB6 ?
Moderators: gto, cipto_kh, EgonHugeist
DBGrid1 and zeos in BCB6 ?
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
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
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/
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/
These are screenshots:
ZQuery1 SQL code: select * from mesaj
What is wrong?
ZQuery1 SQL code: select * from mesaj
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
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
The don't appear here too.. try to use this service:
http://imageshack.us/
http://imageshack.us/
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
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
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
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
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
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