[Lazarus] Break in 'case...of' block.

patspiper patspiper at yahoo.com
Sun Aug 22 11:18:37 CEST 2010


> You should use Else. But if you insist on break, you can insert a 
> dummy repeat/until loop:
>
One more thing, since you are creating a TStringList, it is recommended 
to enclose your code anyway in a try/finally block irrespective whether 
you use the dummy loop or not. This guarantees the freeing of the list 
in case of an exception.




More information about the Lazarus mailing list