Page 1 of 1

xbrowse\Header

Posted: Wed Jan 30, 2013 10:15 pm
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

Re: xbrowse\Header

Posted: Thu Jan 31, 2013 1:41 am
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.

Re: xbrowse\Header

Posted: Thu Jan 31, 2013 5:57 pm
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