Hi Nadya,
I'm glad you got it working, but rather than adding separate constructs, why not include them in the existing loop constructs?
Scan while myCondition = .T. and oValid.lContinue
do while myCondition = .T. and oValid.lContinue
etc..
>BTW, your suggestion works like a charm :) Actually, I did it first, then I thought, may be I don't need to repeat this
>
>if !oValid.lContinue
> exit
>endif
>couple of times and deleted these lines. Then I found, that it doesn't work otherwise and inserted them again :)
>
>Now it works fine...
kenweber
GCom2 Solutions
Microsoft Certified Professional