BUG: RStoCursor in Vfpcom.dll File Does Not Work with Certain Data Types (262067)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q262067 SYMPTOMS
Microsoft Visual FoxPro developers often make use of the VFPCOM Utility, which is available for download from the Microsoft Visual FoxPro Web site. Among other things, this sample allows users to convert an ADO recordset into a FoxPro cursor through its RSToCursor() method.
When you attempt to create a cursor from an ADO recordset by using the RSToCursor() method, the numeric, float, and Double data types are not converted properly. This behavior results in a -10 return code from the object, and the FoxPro cursor is not created.
Additional information on the Vfpcom sample and its error codes may be found in the "References" section later in this article.
RESOLUTION
There is a Microsoft Visual FoxPro RS2DBF function inside of the program named RS2DBF.PRG that converts an ADO recordset to a Visual FoxPro cursor and retains numeric, float, and Double data types.
More information and a download point can be found at this Microsoft Web site:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
235985 INFO: Error Codes for VFPCOM Utility
192692 Rs2dbf.exe Converting ADO 2.x Recordset to VFP Cursor
(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Trevor Hancock, Microsoft Corporation.
| Modification Type: | Major | Last Reviewed: | 5/12/2003 |
|---|
| Keywords: | kbbug kbCodeSnippet kbDatabase kbOOP kbpending KB262067 |
|---|
|