passing "nil" will usually get you past the compiler.

whether or not this has some dire consequences depends on
what the particular handler does with it.    Often it's ignored.

when i'm in this situation and have the option I usually write
a private or protected "helper" procedure to do the handling and
then call the helper the event handler and can also call the
helper from elsewhere in the program.

But sometimes you can't.

-ns


-----Original Message-----
From: Joel van Velden <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Wednesday, November 29, 2000 09:51
Subject: [DUG]: Procedure Problem


Hi there all,

Just 1 newbie question:

How do I run an event-handlers procedure from somewhere else in the program?
ie, What do I give as 'Sender' in 'procedure TForm3.ListBox1Click(Sender:
TObject);'

TIA,
Joel van Velden

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to