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

Click here to load this message in the networking platform