Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with 'replace' statement
Message
From
29/05/1999 15:09:53
 
 
To
28/05/1999 08:32:04
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00223884
Message ID:
00224384
Views:
24
>Thanks. That worked. I had a series of locates in the loop, and then the replace statement. If the last locate failed (which it would in some cases) it was at the end of file when it replaced. Thanks.
>
>Jolene Dicks

Jolene- you can always overcome this by using the IN clause at the end of you REPLACE statements.

REPLACE MyTable.MyField WITH "Howdy" IN MyTable

This makes the statement impervious to the EOF anomoly.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform