DOCERR: Note in REPLACE Command Documentation Is MisleadingID: Q139062 3.00 WINDOWS
The information in this article applies to:
SUMMARYThe Note in the REPLACE command documentation describes a limitation that in fact does not exist in Visual FoxPro. The incorrect note states:
It is possible to replace a field in another work area if the pointer is at
the end of the file in the current work area by using the REPLACE command
with the IN clause as in this example:
MORE INFORMATIONThe REPLACE command will not work if the pointer is at the end of the file in the table where the replacement is supposed to occur no matter where the pointer is in the current table.
Sample CodeRun the following code from the Visual FoxPro Command window. SET DEFAULT TO C:\VFP\SAMPLES\DATA OPEN DATA testdata USE products IN 0 USE customer IN 0
SELECT customer
GO BOTTOM
REPLACE Eng_name WITH "John Doe" IN products
Browse the products table, and note that Eng_name has been changed to John Doe contrary to what the documentation says. Additional reference words: 3.00 VFoxWin KBSubcategory: FxotherGeneral
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |