01-05-2020, 07:10 AM
(This post was last modified: 01-05-2020, 07:15 AM by SorenJensen.)
Hi All,
I have an OnChange event for a IWEdit1 field. As expected it fires every time the Text is changed, including when I in code assign a text to IwEdit1.text (like IwEdit1.text := 'ggg'). I some cases I do not want it to fire and I would normally set the event pointer in code, before and after the assignment to avoid it firing:
IWEdit1.OnChange := nil;
IWEdit1.text := 'Some initial text';
IWEdit1.OnChange := IWEdit1Change;
Can I do something similar in IntraWeb ?
For the the above example IWEdit1.OnChange := nil; the IDE accepts the code but the compiler fails with error E2233:" 'OnChange' inaccessible here.
Anybody knows why ?
Regards
Soren