>Christof,
>
>Here's another infelicity of teh WITH/ENDWITH construct that I got bit by. The object reference is resolved on the WITH line and it is not refreshed later;
>
>
>GO TOP
>SCATTER NAME MyData
>SCAN
> WITH MyData
> .Name = "Joe Smith 1"
> ENDWITH
> GATHER NAME MyData
> SKIP
> SCATTER NAME MyData
>ENDSCAN
>
>
>The above code will only change the first record because it loses the reference to MyData after the first pass.
Are you sure you should call this wrong? I mean the object that you started WITH/ENDWITH wit, you destroyed. Should WITH/ENDWITH really pick up any other object that happens to have a variable with the same name referencing it? This behavior seems true to me.
Erik Moore
Clientelligence