- Code: Select all Expand view RUN
#include "Fivewin.ch"
REQUEST DBFCDX
FUNCTION MAIN()
LOCAL oDlg, oBrw
RDDSETDEFAULT( "DBFCDX" )
USE TEST
INDEX ON FIELD -> last + FIELD -> first TO "TEMP__" FOR FIELD -> last = "A"
DEFINE DIALOG oDlg;
SIZE 400, 400
@ 1, 1 LISTBOX oBrw FIELDS TEST -> last,;
TEST -> first;
SIZE 200, 200 PIXEL
oBrw:bLogicLen = { || ( oBrw:cAlias ) -> ( OrdKeyCount() ) }
ACTIVATE DIALOG oDlg;
CENTER
CLOSE
FERASE( "TEMP__.CDX" )
RETURN NIL
A possible fix:
- Code: Select all Expand view RUN
METHOD VGoDown() INLINE iif( ::nVScrollPos < ::nLen, ::VSetPos( ::nVScrollPos + 1 ), )
METHOD VGoUp() INLINE iif( ::nVScrollPos > 1, ::VSetPos( ::nVScrollPos - 1 ), )
EMG