Microsoft KB Archive/316432

= FIX: XMLToCursor Incorrectly Adds Row When You Use an Inline Schema =

Article ID: 316432

Article Last Modified on 3/2/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q316432



SYMPTOMS
The XMLToCursor function erroneously adds a row to a cursor when you use an inline schema.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in Microsoft Visual FoxPro for Windows 7.0. This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



Steps to Reproduce Behavior
Save the following code in a program (.prg) file and then run the program: ** CODE BEGIN: CLEAR CREATE CURSOR TQUERY (COL1 I, COL2 C(10), COL3 D, COL4 T, COL5 L, COL6 Y) LCXML = &quot;&quot; CURSORTOXML(&quot;TQUERY&quot;,&quot;LCXML&quot;,1,48,0,&quot;0&quot;) CURSORTOXML(&quot;TQUERY&quot;,&quot;LCXML2&quot;,1,48,0,&quot;1&quot;) ? LCXML  && EMPTY XMLDOC WITH NO SCHEMA REF CLOSE DATA XMLTOCURSOR(LCXML,&quot;TC1&quot;) ?'EXTERNAL SCHEMA RECCOUNT:',RECCOUNT XMLTOCURSOR(LCXML2,&quot;TC2&quot;) ?'INLINE SCHEMA RECCOUNT:',RECCOUNT RETURN After you run the program, note that the record count of the cursor echoed to the desktop for the inline schema is 1.
 * CODE END

Additional query words: kbVFP700sp1fix

Keywords: kbbug kbfix kbcodesnippet KB316432

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.