in reply to Re: Avoiding goto
in thread Avoiding goto

Thanks everyone. I'll go through all the different solutions you suggested and will use the one which works best in my case.