Sieben: Thank you very much for the code, but what is Fsuspended, is a variable boolean?
if I have edit1.clear on event form OnActivate, it's is executed.
Put initialization code into OnCreate, [...]
One small gotcha of those workarounds is that you should make sure the fields start with a known value, so you have to add an OnCreate event handler and initialize them:
Quote from: lucamarOne small gotcha of those workarounds is that you should make sure the fields start with a known value, so you have to add an OnCreate event handler and initialize them:In Delphi one could rely on any class vars to be initialized with zero, so explicitely initializing strings to '', integers to 0 or Booleans to false wasn't really necessary. Different with Lazarus...?