Xbrowse bOnChange works when changing data in loop ?

Xbrowse bOnChange works when changing data in loop ?

Postby Marc Venken » Sat Jan 29, 2022 11:34 am

I first noticed that when I use a For Next using the Xbrowse fields the codeblock onchange from that field is also executed ?
That is correct ? Very nice... did not know, but please confirm...

// his will change data from the selected rows

FOR I = 1 TO LEN(oBRWT2:aSELECTED) // obrw:aSELECTED is an array containing recnos marked
(oBrwT2:cAlias)->(dbgoto(oBRWT2:aSELECTED[I]))
oBrwT2:&nVeldID:Varput( mem_var )
NEXT
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1442
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Xbrowse bOnChange works when changing data in loop ?

Postby nageswaragunupudi » Sun Jan 30, 2022 5:03 pm

If you use VarPut(), bOnChange also is executed and totals also get modified.
VarPut() is totally equivalent to user editing the data online.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests