Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I add a property?
Message
 
À
30/10/2000 23:32:38
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00436191
Message ID:
00436286
Vues:
23
There is nothing in help about it.

>Joe,
>
>AddProperty() adds a property at run time. You can read about it in help and try it out.
>
>I use it to add properties to my application object based on a list I have in a table. Need more properties? Just add to the table!
>
>
>
>>Thanks... That was too easy. I was looking for an addproperty clause or something.
>>
>>>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform