Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I add a property?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00436191
Message ID:
00436202
Vues:
24
Hi Joe,

If you mean at design time, then just add the property and a default value under the DEFINE CLASS clause:
DEFINE CLASS MyNewRelation AS RELATION
cUserProp1 = "My User Defined Property"
nUserProp2 = 4

PROCEDURE INIT

* process the stuff here

return DODEFAULT()

ENDPROC

ENDDEFINE
Cheers,

Andrew

>I can't figure out how to add a property to a class that I programmatically created in vfp5. Any tips?


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform