Autor Beitrag
area6
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

win 2000, suse lin 9.1
d6 personal, d7, kylix3
BeitragVerfasst: Mo 24.06.02 09:44 
Hallo Ihr Lieben!!!

Also, Ziel ist ein Trivial Pursuit. Da ich allerdings keinen Draht zu DB habe, liegen dessen Fragen und Antworten in Access-DB, da eine Freundin so gnädig war, mir diesen Job abzunehmen.

Nur, wie kriege ich jetzt diese Fragen und Antworten in mein Delphi-Programm (d6personal)?

Access-DB --> Frage auf Label --> Abfragen ob richtig oder falsch --> Antwort auf Label --> nächste .... ???

cu, area6.


Zuletzt bearbeitet von area6 am Mo 24.06.02 11:49, insgesamt 1-mal bearbeitet
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mo 24.06.02 10:33 
Hallo,

für was steht das "p" bei deinem D6P? Personal?

Wenn ja wirst du wahrscheinlich über CSV Dateien und MyLitteBase gehen müssen. Da habe ich aber auch noch nicht mit gearbeitet.

Gruß
Klabautermann
Alfons-G
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 307

Win XP Prof, Linux, Win 7
D5 Prof, D7 Architect, D2005 Architect, D2007 Architect
BeitragVerfasst: Mo 24.06.02 13:38 
Es gibt Komponenten zum Zugriff auf Access, welche auch für Delphi Personal geeignet sind. Bekannt ist z.B. KaDAO PE, das kannst Du bei Torry runterladen.
MyLittleBase ist allerdings für diesen Zweck auch keine schlechte Wahl. Allerdings musst Du dann die Daten, wie Klabautermann schrieb, aus Access in eine CSV-Datei exportieren.

:D

_________________
Alfons Grünewald
Spike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 69
Erhaltene Danke: 1



BeitragVerfasst: Mi 26.06.02 22:50 
Da hier anscheinend keine komplexen Datenbankoperationen nötig sind sondern ein reiner Lesezugriff reicht - wäre es da nicht einfacher die Access-DB in eine Textdatei zu konvertieren und dann daraus zu lesen.
Das kommt auch der Größe Deiner Anwendung sicher zugute.
area6 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

win 2000, suse lin 9.1
d6 personal, d7, kylix3
BeitragVerfasst: Mi 26.06.02 23:44 
bestimmt ... :roll: ... nur wie?
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 26.06.02 23:52 
Hi,

die Tabelle im Access mit rechts anklicken auf Exportieren gehen und dann Textdateien auswählen.

Du erhälst eine CSV (Comma Seperated Values) Datei. Dies ist ein recht einfaches Textformat welches du auch selber leicht auswerten kannst ohne auf Komponenten zuückgreifen zu müssen.
Schaue es dir einfach mal im Editor an.

Gruß
Klabautermann