Is there anything specifically to be taken care of to display the Up and Down symbol displayed on the xBrowse Column Header using the oCol:nHeadBmpNo.
I am using the following function to Sort the RecordSet Data displayed on the xBrowse. The sorting is working fine, but it never displays the Up and Down arrow on the Header Column. I don't know where I am wrong.
oBrw:nHeaderHeight := 50
oBrw:nHeaderLines := 3 // No. of Lines Required on Header Column
oBrw:nFreeze := 3 // Freeze columns till 3
AEval(oBrw:aCols,{|oCol|oCol:bLClickHeader:={|f,c,h,oCol|SortStkList(oBrw,oRecset,oCol)}})
*-------------------------------------------*
STATIC FUNCTION SortStkList(oBrw,oRs,oCol,cFld)
*-------------------------------------------*
LOCAL cSort:=oRs:Sort,nLen,nFor
DEFAULT cFld:=oCol:cHeader
IF !Empty(oCol:cOrder)
oCol:cOrder:=IF(oCol:cOrder=='ASC','DESC','ASC')
oCol:nHeadBmpNo:=IF(oCol:cOrder=='ASC',1,2)
ELSE
nLen := len( oBrw:aCols )
for nFor := 1 to nLen
oBrw:aCols[ nFor ]:nHeadBmpNo := 0
oBrw:aCols[ nFor ]:cOrder := ""
next
oCol:cOrder:='ASC'
oCol:nHeadBmpNo:=1
ENDIF
oRs:Sort:=cFld+Space(1)+oCol:cOrder
oBrw:GoTop()
MsgInfo(oCol:nHeadBmpNo) // To see the Value of nHeadBmpNo
RETURN NILI tried using MsgInfo(oCol:nHeadBmpNo) and found that the value of oCol:nHeadBmpNo is changing perfectly ie either 1 or 2.
I am using Multiple line on Headers
oBrw:nHeaderLines := 3 // No. of Lines Required on Header Column
Any help ?
Regards
Anser