Maybe not relevant to your case, but you might find the C5s are being caused by exiting method from within a with/endwith construct.
>>>Hi,
>>>
>>>Do we have a procedure at hand to remove With / EndWith syntax from a procedure / programm?
>>>
>>>Regards,
>>>
>>>Koen
>>
>>Why would you want to do this?
>
>Hi,
>
>Because I / we find it more accurate to change our coding from With / Endwith construction to oObject. Advantage: no more possible C00005 (return within a With / EndWith and better readable source. It seems that the time gain if at all with With/ Endwith is neglectable. However it is tendious job to go through all the coding to remove and reconstruct. Basicly it should not be so difficult, there are however e few pitfall. So in order not to reinvcent the wheel my question.
>
>Regards,
>
>Koen
Charles Hankey
Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy
Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.
-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin
Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.