TDatabase class WIKI

TDatabase class WIKI

Postby nageswaragunupudi » Wed Aug 02, 2017 7:48 pm

Updated WIKI of TDatabase class

http://wiki.fivetechsoft.com/doku.php?i ... _tdatabase

This includes new datas and methods added in FWH17.07

* TDATABASE:
New Methods:
- Record( [cFieldList], [lNew] ) --> RecordObject for edit/save
Note: RecordObject is TDataRow object
- Edit( [cFieldList], [lNew] ) --> Edit Dialog for editing/saving a record
- Update( aFlds, aVals ) --> lSuccess
Modifies an existing record, writing aVals to corresponding aFlds
Alternative Syntaxes:
Update( cFieldList, aVals ) --> lSuccess
Update( aVals ) // aVals written to fields 1,2, .etc
Update( aFldVal ) // aFldVal can be 2 dim array of fields and vals
Fields can be by number or names.
- Append() method now returns lSuccess and as usual appends blank
- Append( aFlds, aVals ) --> lSuccess
Appends and writes aVals to aFlds
Alternative Syntaxes are like Update method.
- Record Object handles Calculated columns and Aliased column names
- Method BookMark is now modified as SETGET method.
- New Data: bEdit (format { |oRec|UserEdit( oRec ) } ) for user edit
instead of default edit procedure.
- Enhancement: Method SqlQuery() uses VFPOLEDB is installed for DBFCDX.
- Added DESTRUCTOR method. oDbf := nil closes table and connections.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10681
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TDatabase class WIKI

Postby devtuxtla » Wed Aug 02, 2017 9:04 pm

Hi Nages

Question: Is it possible to use TDatabase only with MySql?

Regards
Visite Chiapas, el paraiso de México.
devtuxtla
 
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: TDatabase class WIKI

Postby nageswaragunupudi » Wed Aug 02, 2017 11:34 pm

TDatabase is for DBFs.
TDatabase for MySql is FWMariaRowSet
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10681
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TDatabase class WIKI

Postby devtuxtla » Thu Aug 03, 2017 2:54 am

Hi, Nages.

Thanks,

Is wiki documentation available for FWMariaRowSet?

Regards
Visite Chiapas, el paraiso de México.
devtuxtla
 
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: TDatabase class WIKI

Postby nageswaragunupudi » Thu Aug 03, 2017 2:56 am

Please see

viewtopic.php?f=3&t=32737

We are in the process of including this documentation in WIKI.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10681
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 40 guests