Autor Beitrag
jamany
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: So 16.03.03 23:27 
Wie lauten die Befehle mit denen ich Zeile für Zeile eine dbf(dBase)-Datei einlesen kann?
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Mo 17.03.03 04:04 
hallo jamany!

wohin willst denn die daten lesen?
sinnvoll sind dabei zb die befehle:
- table.open
- tempfeld:= table.FieldByName('feldname').asDeineVariable;
- table.next
- table.close

mfg, stefan
jamany Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Mo 17.03.03 11:22 
Vielen Dank.
Die Befehle helfen mir schon mal weiter...

Ich würde die gerne die Daten aus der dbf-Datei in eine Paradox-Tabelle der Anwendung lesen. Dabei sollte aber überprüft werden, welche Werte schon vorhanden sind.
Die dbf-Datei ist immer aktuell, so dass die Paradox-Tabelle mit den neuen Werte aufgefüllt werden soll. Quasi einfach synchronisieren.

Mit welchen Befehlen würde das gehen? Hast du da ein paar Tipps?
mars
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 238

Debian Woody, Win 2000, Win XP
D7 Ent, Kylix 3
BeitragVerfasst: Mo 17.03.03 12:14 
Such mal in der OH nach Table.Locate. Damit kannst du nach Werten in der Paradox-Tabelle suchen. So ginge es jedenfalls, aber vielleicht hat ja jemand eine einfachere, bessere Lösung.
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 17.03.03 14:11 
Hallo,

ein paar grundlegende Informationen zum Arbeiten mit dem Tabellen-Objekt findest du hier.

Gruß
Klabautermann