Page 1 of 1

Xbrowse bOnChange works when changing data in loop ?

Posted: Sat Jan 29, 2022 11:34 am
by Marc Venken
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

Re: Xbrowse bOnChange works when changing data in loop ?

Posted: Sun Jan 30, 2022 5:03 pm
by nageswaragunupudi
If you use VarPut(), bOnChange also is executed and totals also get modified.
VarPut() is totally equivalent to user editing the data online.