Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26219

TDatabase with several DBF

$
0
0
Database objects are wonderful and so easy to use. 1) Open an object, using the name you like, and then just refer to the object 2) Open other objects on the same database if you wish. For example, you may have one open for an editor of clients, but open a second one to do a quick lookup of a different account: oCust := TDataBase():Open( nil, "customer.dbf", "DBFCDX" ) oCust2 := TDataBase():Open( nil, "customer.dbf", "DBFCDX" ) 3) You can have many different objects open for different databases. Be sure to name them so you understand which ones you want to use. James has an extension to tDatabase called tData, and another program called tRecord. The advantage of tRecord is that it saves all the field values in a buffer, and even if the pointer somehow changed on an open record, when you use the tRecord objects Save, it remembers the record number and is sure to save the data to the correct place. Also, because it is in memory, no write to the drive occurs until you actually commit with a save(). Tim

Viewing all articles
Browse latest Browse all 26219

Trending Articles