[Lazarus] try finally exit

Bart bartjunk64 at gmail.com
Fri Jun 28 22:34:07 CEST 2013


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?

Bart




More information about the Lazarus mailing list