[Lazarus] Initial value for procedure of object

dmitry boyarintsev skalogryz.lists at gmail.com
Tue Jan 22 05:01:45 CET 2013


Every field is set to nil or 0 at the time of object construction.
You don't have to set it to nil explicitly.

thanks,
Dmitry

On Mon, Jan 21, 2013 at 9:54 PM, xrfang <xrfang at gmail.com> wrote:
> Hi,
>
> If I define a class like this:
>
> TMyClass = class(TWinControl)
> private
>     FOnClick: TNotifyEvent;
>     ...
> end;
>
> What is the initial value of FOnClick?  Do I have to set it to nil
> explicitly in the constructor?
>
> Thanks,
> Shannon
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list