Hi Koos,
DO...ENDDO and WITH...ENDWITH have totally different functonalities and have nothing in common.
DO WHILE is a loop where you specify the termination to come out of the loop wheras WITH Object helps to access objects faster and also we type less.
>Dear foxpro'ers,
>
>Last week I had a conversation with a friend of my in which he asked me :
>
>What can you do with "WITH.. ENDWITH" in a DO function. Unfortunately I could not answer him right away.
>
>So know I'm also interested in the workting of "WITH.. ENDWITH" in a DO function.
>
>If you can help me with this, please do.
>
>
>
>Thank you very Much,
>
>
>
>Luco Buhrs
>
>On Koos Veel's Account