[Lazarus] try finally exit

Junior lazarus.linux at gmail.com
Sat Jun 29 01:42:05 CEST 2013


please be patient.

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