I have a xbrowse as this
Now it is order by Numbersyou see at right
and I wish change the display ( position of the records)
I mean if exist a sample to SwapUp() and SwapDown() a record into xbrowse
REDEFINE XBROWSE oConcepto ID 200 OF oDlg ;
AUTOCOLS ;
HEADERS "CONCEPTO","VALOR" ;
SIZES 580,120 ;
ARRAY aConcepto ;
CELL LINES
WITH OBJECT oConcepto
//Cambiando posicion de lineas en el Browse
:bDragBegin := { |r,c,f,o| SetDropInfo( { oConcepto:nArrayAt, oConcepto:aRow } ) }
:bDropOver := { |u,r,c,f| oConcepto:LButtonDown( r,c ), ;
oConcepto:LButtonUp(), ;
aDel( aConcepto, u[ 1 ] ), ;
AIns( aConcepto, oConcepto:nArrayAt, u[ 2 ] ) }
END
aArray:= EL->( FW_DbfToArray("ELNOME,ELORDINE" ) )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 98 guests