Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class name property conflict
Message
 
To
30/06/2000 09:55:25
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00387041
Message ID:
00387047
Views:
15
May be worth prefixing all your generated properties with '_' or something.

>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.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform