Xbrowse bOnChange works when changing data in loop ?

Post Reply
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Xbrowse bOnChange works when changing data in loop ?

Post 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
Marc Venken
Using: FWH 23.08 with Harbour
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Xbrowse bOnChange works when changing data in loop ?

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply