Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Did I miss something?
Message
From
07/02/2002 07:47:36
 
 
To
06/02/2002 17:42:54
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615839
Message ID:
00616519
Views:
26
Hi Calvin

PMFJI

>... some testing in 2.5 and sure enough if the current record is at eof() replacements are not done in referenced tables. Was this a generally know bug?

This is not a bug, it is by design and has always been this way. REPLACE is scoped to the current work area and so, when the table in the current work area is at EOF(), no record exists for replace to work on.

The fact that the replace is actually being done in a remote work area (by prefixing the field with the name of the table) did not alter the scope for the EOF() check.

The 'IN' clause tells VFP to use the referenced table for the EOF() check rather than the currently selected one, but the behavior has not changed and if the referenced table is at EOF() no replacement will occur <g>
----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform