Maybe old age is getting me.
I thought the ON CHANGE activated when the total value of a get was modified, not for each character entered. I realize a VALID tests the total value, but I want to run a function only if the total value changes, not everytime the field is displayed.
Currently, ON CHANGE will activate with every keystroke, as demonstrated in the following example. Is this a correct behavior ?
// Test On Change in get
INCLUDE "fivewin.CH"
PROCEDURE main
LOCAL oDlg
LOCAL oTestGet := SPACE(10)
DEFINE DIALOG oDlg SIZE 500, 300
@ 3, 10 GET oTestGet PICTURE "@!" ON CHANGE ( MsgAlert( "Changed" ) )
ACTIVATE DIALOG oDlg
RETURN NIL
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit