FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour question about TDataRow [answered]
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
question about TDataRow [answered]
Posted: Fri Dec 26, 2014 01:42 PM

Hello,

I load a record using TDataRow() -TDataRow():New( alias() )-, but I need to search in all the fields for a specific value: i don´t know the field there this value is.

Is it possible?.

Thank you.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: question about TDataRow
Posted: Fri Dec 26, 2014 02:41 PM

You must be aware that TDataRow operates on a single record.

TDataRow has DATA aData, which is a multi-dim array. First column is field name and second column is value of the field.

oRec := TDataRow():New( [cAlias] )

oRec:aData[ n, 1 ] --> nth field name
oRec:aData[ n, 2 ] --> nth field value.

You can search for what you want.
We recommend strongly never to modify this array directly.

Regards



G. N. Rao.

Hyderabad, India
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: question about TDataRow
Posted: Fri Dec 26, 2014 05:29 PM

Thank you.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40

Continue the discussion