- Code: Select all Expand view RUN
#include "FiveWin.ch"
static no, oDlg, oSay2
function Main()
local oSay
no := 0
DEFINE DIALOG oDlg
@ 1, 2 SAY oSay PROMPT "Current no: "+ltrim(str(no)) update
@ 2, 2 SAY oSay2 PROMPT "x" size 50,10 update
@ 3,3 BUTTON "Increment" OF oDlg ACTION refreshNo()
ACTIVATE DIALOG oDlg CENTERED
msginfo(no)
return nil
//----------------------------------------------------------------------------
function refreshNo()
no++
oSay2:setText(ltrim(str(no)))
oDlg:update()
return nil
These are the behaviour observed when the above code is compiled using xHarbour 0.99.41+FWH2.6 (old method) and xHarbour 0.99.61+FWH 2.8 Nov (new method)
Old Method
Everytime the Increment button is pressed oSay would show the most current value of no while oSay2 won't.
New Method
Everytime the Increment button is pressed oSay2 would show the most current value of no while oSay won't.
So...
I'm not sure this difference in behaviour is due to changes in xHarbour or FWH but I desperately need to get the old behaviour back as lots of my code rely on such behaviour. Anyone can shed an idea on this? It's quite urgent as I've recompiled all my programs with the latest xHarbour and I want to avoid any further surprises.
Thanks