FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour changes for TDataRow
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
changes for TDataRow
Posted: Sun Jul 19, 2015 05: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
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: changes for TDataRow
Posted: Wed Jul 22, 2015 09:48 AM

Up!.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: changes for TDataRow
Posted: Wed Jul 22, 2015 09:51 AM

Moises,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: changes for TDataRow
Posted: Wed Jul 22, 2015 03: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: changes for TDataRow
Posted: Wed Jul 22, 2015 03:39 PM
For quickly printing a record from DataRow class.

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

Code (fw): Select all Collapse
XBREPORT oXbr OF oWnd DATASOURCE oRec:aData COLUMNS 1,2 ;
HEADERS "Field", "Value"
Regards



G. N. Rao.

Hyderabad, India
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: changes for TDataRow
Posted: 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

Continue the discussion