Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Bug, who's seen it?
Message
From
16/12/1999 09:16:58
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00304389
Message ID:
00304607
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform