FIX: Copy To ... Type SDF Causes Error Message in Visual FoxPro (172923)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q172923 SYMPTOMS
Issuing two consecutive COPY TO <filename> TYPE SDF commands causes Visual
FoxPro 5.0x to return the following error message on the second command:
File <filename>.txt already exist as part of a database.
This error does not occur in Visual FoxPro 3.0b.
RESOLUTION
Check for the existence of the first SDF file and if it exists delete it.
In the code example in the MORE INFORMATION section below, the following
code accomplishes this task. Place the code between the two COPY TO
commands:
IF FILE("test1.txt")=.t.
DELETE FILE test1.txt
ENDIF
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This has been corrected in Visual FoxPro
6.0.
Modification Type: | Major | Last Reviewed: | 3/24/2000 |
---|
Keywords: | kbbug kbprb kbvfp600fix KB172923 |
---|
|