Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class name property conflict
Message
From
30/06/2000 09:55:25
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Class name property conflict
Miscellaneous
Thread ID:
00387041
Message ID:
00387041
Views:
41
I have an app that generates a set of VFP classes from an XML schema. It works fine except when the XML schema has a tag named "Name" which generates a class definition like:

DEFINE CLASS supplier AS xmlSchema
Name=''
Address=''
.
.
ENDDEFINE

VFP will barf (Data type is invalid for this property (Error 1732)) when you instantiate the class. I think the answer may be to intercept any "name" attributes and alias them to something else on the input and then convert back when converting the class information into an xml document. I thought I would get some opinions here before I proceed. TIA.
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Next
Reply
Map
View

Click here to load this message in the networking platform