Главная страница | назад





Article #15602: Assign(OnEvent?)

 Question and Answer Database

FAQ602C.txt   Assign(OnEvent?)
Category   :VCL
Platform    :All
Product    :C++Builder  1.x

Question:

In Delphi, it is possible to do something like this:

If (Assigned(OnMyEvent)) Then
OnMyEvent(Self);

how do I do this in BCB?

Answer:

{
if(MyObject->OnMyEvent!=NULL) {
   MyObject->OnMyEvent()
   }
}

7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99