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

Click here to load this message in the networking platform