[Lazarus] Initializing my App

Mattias Gärtner nc-gaertnma at netcologne.de
Wed Oct 29 10:46:42 CET 2008


Zitat von Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com>:

> On Tue, Oct 28, 2008 at 4:42 PM, Valdas Jankûnas <zmuogs at gmail.com> wrote:
> > // when form appears
> > procedure TfrMain.FormShow(Sender: TObject);
> > const
> >   SHOWED_FIRST_TIME: Boolean=False;
>
> Does this work? If this was a variable this surely wouldn't work,
> because it's scope would be local to the procedure.

scope <> lifetime

afaik const are never on the stack. It should work.

Mattias




More information about the Lazarus mailing list