TDATABASE Help

TDATABASE Help

Postby Ollie » Tue Jul 03, 2007 1: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby James Bott » Tue Jul 03, 2007 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests