FIX: Reserved Word "IsDataSet" in CURSORTOXML Schema Is Misspelled (318990)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 7.0

This article was previously published under Q318990

SYMPTOMS

When you use the cSchemaName parameter of the CURSORTOXML function to convert a Visual FoxPro cursor into XML text and build a schema, the reserved word "IsDataSet" in the schema is misspelled as "lsDataSet". The first letter of the reserved word is a lower case letter "L" instead of an upper case letter "I".

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.

MORE INFORMATION

Steps to Reproduce Behavior

Paste the following code in a program (.prg) file, and then run the program from the Command window:
CREATE CURSOR xml_test ( fld1 C(25))
INSERT INTO xml_test VALUES("IsDataSet is misspelled.")
CURSORTOXML("xml_test", "xml_var", 1, 0, 0, "1")
STRTOFILE(xml_var, "isdataset.xsd")
MODIFY FILE isdataset.xsd NOWAIT
KEYBOARD '{CTRL+F10}'
				
After the text file isdataset.xsd opens, note that the reserved word "IsDataSet" is misspelled "lsDataSet" in the fifth line of the file.

Modification Type:MajorLast Reviewed:4/10/2002
Keywords:kbbug kbCodeSnippet kbCtrl kbDSupport kbVFP700sp1fix KB318990