Autor Beitrag
nicron
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: So 11.05.03 06:15 
Hallo erstmal,
ich habe dieses Tutorial hier benutzt:
www.delphi-treff.de/...sql/index.php4?kat=1

funktioniert auch alles wunderbar.....bis auf die anzeige.
Ich will die tabelle in einem dbgrid darstellen. Könnte mir dabei mal jemand helfen?

wäre wirklich nett...

andreas

_________________
We do right noone remembers, we do wrong noone forgets...
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: So 11.05.03 09:10 
Du mußt dazu folgende Komponenten auf Deiner Form oder in einem Datenmodul haben :

DataSource, eine Query, DBGrid

So nun verbindest Du das DBGrid mit der Datasource und die DataSource mit der Query. Wenn Du jetzt einen SQL-Befehl (z.B SELECT) in der Query absetzt, wird Dir das Ergebnis im DBGrid angezeigt.
nicron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: So 11.05.03 11:15 
die Query und datasource sind da....
und die abfrage auch:
ausblenden Quelltext
1:
2:
qrMain.SQL.Text:='Select * from `adressbuch` order by name;';
qrMain.Open;

aber im DBgrid wird nix angezeigt?

Moderiert von user profile iconTino: Code-Tags hinzugefügt.

_________________
We do right noone remembers, we do wrong noone forgets...
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: So 11.05.03 19:16 
Du musst das DBGrid noch mit der DataSource verbinden.
nicron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: So 11.05.03 23:52 
Das habe ich auch getan.
Ich kriege einfach die Tabelle nicht im DBGRID angezeigt.

_________________
We do right noone remembers, we do wrong noone forgets...
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Mo 12.05.03 08:47 
ist beides auch auf aktiv geschalet O_o

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
nicron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Mo 12.05.03 14:40 
ja, ist es.
Irgendwie scheinen die Sachen aber nicht zusammen zu laufen. Kennt sich jemnd mit den Controls von Zeos aus?

_________________
We do right noone remembers, we do wrong noone forgets...