FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse bOnChange works when changing data in loop ?
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Xbrowse bOnChange works when changing data in loop ?
Posted: 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.08 with Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse bOnChange works when changing data in loop ?
Posted: Sun Jan 30, 2022 05: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

Continue the discussion