but it is shown on different places
I tested :
VSetPos(1)
VGoTop()
but it is not the solution I need.
The first found record must be placed on top-position.
I remember there was a solution ( post ), but couldn't find it.

regards
Uwe

Code: Select all | Expand
func xbtest()
field STATE
local oDlg, oBrw, oFont
USE CUSTOMER NEW SHARED VIA "DBFCDX"
INDEX ON STATE TAG TMPSTATE TO TMP MEMORY
SET ORDER TO TAG TMPSTATE
GO TOP
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
DEFINE DIALOG oDlg SIZE 600,600 PIXEL TRUEPIXEL FONT oFont
@ 60,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "STATE", "FIRST", "CITY", "AGE", "SALARY" ;
CELL LINES NOBORDER
WITH OBJECT oBrw
:bRecSelData := { || oBrw:KeyNo }
:nRecSelWidth := "9999"
:AutoFit()
//
:CreateFromCode()
END
@ 20, 20 BUTTON "AL" SIZE 60,24 PIXEL OF oDlg ACTION ( CUSTOMER->( DBSEEK( "AL" ) ), oBrw:nRowSel := 1, oBrw:Refresh() )
@ 20, 90 BUTTON "AR" SIZE 60,24 PIXEL OF oDlg ACTION ( CUSTOMER->( DBSEEK( "AR" ) ), oBrw:nRowSel := 1, oBrw:Refresh() )
@ 20,160 BUTTON "AZ" SIZE 60,24 PIXEL OF oDlg ACTION ( CUSTOMER->( DBSEEK( "AZ" ) ), oBrw:nRowSel := 1, oBrw:Refresh() )
@ 20,230 BUTTON "CA" SIZE 60,24 PIXEL OF oDlg ACTION ( CUSTOMER->( DBSEEK( "CA" ) ), oBrw:nRowSel := 1, oBrw:Refresh() )
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return nil