If I made to select all record on xbrowse
oBrw:SelectRow( 4 )
and the I wish deselect only one record
If I made oBrw:SelectRow( 0 ) it deselect all
how resolve ?
if ( nAt := AScan( oBrw:aSelected, nRecNo ) ) > 0
HB_ADel( oBrw:aSelected, nAt, .t. )
endif
oBrw:Refresh()
nageswaragunupudi wrote:Or, if we want to deselect a specific row number, which is not the current row, we can do like this.
- Code: Select all Expand view
if ( nAt := AScan( oBrw:aSelected, nRecNo ) ) > 0
HB_ADel( oBrw:aSelected, nAt, .t. )
endif
oBrw:Refresh()
We do not recommend this, but this is possible.
Function DeSelect_One(oBrw,oDbf)
local nRecNo:=oDbf:recno(),nAt
if ( nAt := AScan( oBrw:aSelected, nRecNo ) ) > 0
HB_ADel( oBrw:aSelected, nAt, .t. )
endif
oBrw:Refresh()
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 67 guests