Perhaps I don't fully get your problem; but can't you just write this program as a procedure, call it, and then in the innermost loop have
>>if !oValid.lContinue
>> return
>>endif
That would jump completely out of the process, I think.
Mike
Regards
Mike