[Lazarus] try finally exit

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Jun 29 14:27:33 CEST 2013


On Sat, 29 Jun 2013 14:12:04 +0200
Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:

> Jürgen Hestermann schrieb:
> > Am 2013-06-28 22:34, schrieb Bart:
> >  > On 6/28/13, Junior <lazarus.linux at gmail.com> wrote:
> >  >> strList.TStringList.Create;
> >  >> try
> >  >>    if Pos('blablabla',strList.Text) = 0 then
> >  >>      Exit;
> >  >> finally
> >  >>     strList.Free;
> >  >> end;
> >  >> Adding "Exit", the finally is executed?
> >  > Just wondering. Why couldn't you test that yourself?
> > 
> > Is that the way programming is done today: "There is no documentation, 
> > just figure it out yourself"?
> > I can't believe it.
> 
> Such documentation exists in most cases, but it may be hard to find, in 
> detail in a Wiki :-(

The language syntax is not described in the wiki. It is
available as pdf and html.

Mattias




More information about the Lazarus mailing list