[Lazarus] try finally exit

Junior lazarus.linux at gmail.com
Sat Jun 29 01:41:03 CEST 2013


because I use a production machine

plese  be patiente!

Em 28-06-2013 17:34, Bart escreveu:
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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>





More information about the Lazarus mailing list