Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class name property conflict
Message
 
À
30/06/2000 09:55:25
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00387041
Message ID:
00387047
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform