xbrowse\Header

Post Reply
Luisão PITBULL
Posts: 22
Joined: Fri May 04, 2012 3:26 pm

xbrowse\Header

Post by Luisão PITBULL »

Code: Select all

oBrw:aCols[i]:bLClickHeader := {|nMRow, nMCol, nFlags, Self| nCol := ??????????, MsgAlert(nCol) }
how do I know the value of nMCol


I needed to know the column number which was given the click, without even being in focus

thank you

Luiz Fernando
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse\Header

Post by nageswaragunupudi »

Fourth parameter is the column object.
oCol:nCreationOrder gives the serial number of the column while creating the browse.

While programming with xbrowse it is normally advisable to use the column objects instead of numbers.
Regards

G. N. Rao.
Hyderabad, India
Luisão PITBULL
Posts: 22
Joined: Fri May 04, 2012 3:26 pm

Re: xbrowse\Header

Post by Luisão PITBULL »

nageswaragunupudi wrote:Fourth parameter is the column object.
oCol:nCreationOrder gives the serial number of the column while creating the browse.

While programming with xbrowse it is normally advisable to use the column objects instead of numbers.
thanks for the reply form below worked

Code: Select all

oBrw:aCols[i]:bLClickHeader := {|r,c,f,o| nCol := o:nCreationOrder , MsgAlert(nCol) }

Luiz Fernando
Post Reply