Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnChange inaccessible error ?
#1
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
Reply


Messages In This Thread
OnChange inaccessible error ? - by SorenJensen - 01-05-2020, 07:10 AM
RE: OnChange inaccessible error ? - by msgopala - 01-06-2020, 12:59 PM
RE: OnChange inaccessible error ? - by kudzu - 01-06-2020, 04:25 PM
RE: OnChange inaccessible error ? - by kudzu - 01-06-2020, 09:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)