There are very few situations where the sender is nil and still if you expect such a case you can always write something like:

Assert((Sender = nil) or (Sender <> nil));

2006/2/24, Vincent Snijders <[EMAIL PROTECTED]>:
Andreas Berger wrote:
> Geno Roupsky wrote:
>
>> a nicer workaroung is this
>>
>> Assert(Sender <> nil);
>
>
> Thanks :) this could do the trick.

That is, until somebody actually compiles that code with assertions
enabled and Sender=nil. ;-)

Vincent.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



--
Geno Roupsky

Reply via email to