sync Browse when use GOTO()

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

sync Browse when use GOTO()

Post by AUGE_OHR »

hi,

is use

Code: Select all

   SET BROWSESYNC ON
when navigate in BROWSE it will "update" VALUE with RECNO()

now when use GOTO( nRec ) it will not "update" VALUE in BROWSE :o
"Refresh" does not work without VALUE "update" to show right Result :(

did i make something wrong ... is there a other Way :idea:

Code: Select all

PROCEDURE UseThisRec( aHappy )
LOCAL nPosi := ShowFound.List_1.Value   // Result from Listbox
LOCAL nRec  := aHappy[nPosi][2] 	// { "Text",RECNO() }

   GOTO(nRec)
   
   // NEED to set VALUE in BROWSE
   SetProperty( "XPPTEL", "Browse_1", "value", nRec )
   DoMethod( "XPPTEL", "Browse_1", "Refresh" )

RETURN
have fun
Jimmy
User avatar
dragancesu
Posts: 930
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: sync Browse when use GOTO()

Post by dragancesu »

Try browse_1.value := nRow // like goto (nRec), this is goto line in browse, than refresh
Post Reply