I am sorry to ask again some help for xbrowse , but i am converting in a big aplication all the browses to xbrowse.
Folowing the advice from nageswaragunupudi , i try to use xbrowsenew (pre processor)
I have a array from 3 elements , the last should have focus when the dialog is opened
- Code: Select all Expand view
StartNr := 3
@ 0,0 XBROWSE oBrw OF oDlg;
ARRAY Arr AUTOSORT
ACTIVATE DIALOG oDlg ;
ON Init (oBrw:nArrayAt := StartNr )
Now i have a error in refresh (839)
- Code: Select all Expand view
// NkeyNo = ::nLen = 3
if nKeyNo >= ::nLen .and. ::nLen > 1
::nRowSel := Min( nKeyNo, ::RowCount() )
endif
::RowCount() is executed , and gives a error while ::nRowHeight is not defined (only defined in adjust , is not yet executed)
Is there another way to give the last row focus at startup ?
It seems a error , or am i missing something ?
Frank
Error description: Error BASE/1084 Argument error: /
Args:
[ 1] = N 82
[ 2] = U
Stack Calls
===========
Called from: xbrowse.prg => (b)TXBROWSE:TXBROWSE(400)
Called from: => TXBROWSE:ROWCOUNT(0)
Called from: xbrowse.prg => TXBROWSE:REFRESH(858)
Called from: xcombox8.08\XXBROWSE.PRG => TXBRWCOLUMN:MYSORTARRAY(236)
Called from: xcombox8.08\XXBROWSE.PRG => (b)TXBROWSE:MYSETARRAY(159)
Called from: => AEVAL(0)
Called from: xcombox8.08\XXBROWSE.PRG => TXBROWSE:MYSETARRAY(159)
Called from: xbrowse.prg => XBRWSETDATASOURCE(7692)
Called from: xbrowse.prg => XBROWSENEW(7563)