Assigned fragt ja auch ab ob etwas UNGLEICH nil ist.
Natürlich wird dann nur einer deiner 2 MessageBoxen angezeigt
Delphi-Quellcode:
if Assigned(frmInfo) then // = if frmInfo <> nil then
ShowMessage('Assigned');
if frmInfo= nil then
ShowMessage('Nil');
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."