xBrowse functionality

xBrowse functionality

Postby Maurizio » Fri Nov 24, 2017 9:18 am

Hello Rao ,

there are many methods to invoke a column :
oBrw:cHeader:Value
oBrw:oCol(cHeader ):Value
oBrw:aCols[1]:Value

is there a way to call a column with the name of the field?

Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: xBrowse functionality

Postby nageswaragunupudi » Fri Nov 24, 2017 2:52 pm

Search for a column whose :Expr is same as the field name
Regards

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

Re: xBrowse functionality

Postby Maurizio » Mon Nov 27, 2017 11:37 am

Thanks Rao

oBrw:fCol('CODIVA')



METHOD fCol(cField) CLASS TXBrowse
Local n := 0

FOR n := 1 to len(::aCols)
IF HB_IsString(::aCols[n]:cExpr) .and. UPPER(::aCols[n]:cExpr) == UPPER(cField)
exit
ENDIF
next

return If( n > 0, ::aCols[ n ], nil )


Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 106 guests