changes for TDataRow

changes for TDataRow

Postby MOISES » Sun Jul 19, 2015 5:40 pm

Hello,

Can we have please?

Method Delete(), to delete record()

Method Print( cTitle, FieldList, FieldPrompts ).

Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: changes for TDataRow

Postby MOISES » Wed Jul 22, 2015 9:48 am

Up!.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: changes for TDataRow

Postby Antonio Linares » Wed Jul 22, 2015 9:51 am

Moises,

Rao is Class TDataRow developer so I will wait for his code, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: changes for TDataRow

Postby nageswaragunupudi » Wed Jul 22, 2015 3:32 pm

We can add Print() method.

Essentially TDataRow() is a wrapper for scatter/gather functionality for the purpose of editing a record. Advantage of using TDataRow is that it works the same way with any datasource and safe while saving the changes.

We never use scatter/gather functionality if we want to delete a record.
If we have to delete a record, delete it.
If we want to edit/append use tdatarow
Regards

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

Re: changes for TDataRow

Postby nageswaragunupudi » Wed Jul 22, 2015 3:39 pm

For quickly printing a record from DataRow class.

oRec := TDataRow():New( ............ )

Code: Select all  Expand view

XBREPORT oXbr OF oWnd DATASOURCE oRec:aData COLUMNS 1,2 ;
HEADERS "Field", "Value"
 
Regards

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

Re: changes for TDataRow

Postby MOISES » Thu Jul 23, 2015 12:43 pm

Mr. Nages,

Thank you. Also, indicating prompts/titles for the fields will be very interesting.

Also, about delete, as I load the record to modify it, it will be very useful to have a Delete() method, that makes the operation in DBF or ADO as it does with the append or modify. I don´t see a big issue but a very interesting feature.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 53 guests