FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TDATABASE Help
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
TDATABASE Help
Posted: Tue Jul 03, 2007 01:11 PM

I came across something in the TDATABASE Class help:

lBuffer To use or not a buffer. It is a must for NetWorking!

Can someone explain this to me? Does it activate releated to aBuffer?

aBuffer An editing buffer holding fields temporary data The big benefit of using a TDataBase object is the editing where we may drastically reduced our source code size. aBuffer keeps an array with the same number of elements as fields are on the workarea. This buffer may be loaded from the record or saved to the record. So there is no need to work with local variables (normally used with this same purpose, to work as a field buffer), and just one TDataBase object will be enough and perfect to hold all temporary fields values

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
TDATABASE Help
Posted: Tue Jul 03, 2007 03:19 PM

Ollie,

Go to my website and read the articles on OOP programming and the information about TData (an enhanced database class). Then if you still have questions, let me know.

And, yes, using a database class will reduce your code requirements a lot. But that is the least of the advantages.

You will find the articles here:

http://ourworld.compuserve.com/homepage ... rogram.htm

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion