Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add an Array Property to a Class
Message
De
28/08/2007 16:59:23
 
 
À
28/08/2007 16:43:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows Server 2003
Divers
Thread ID:
01251003
Message ID:
01251013
Vues:
16
>>I do this very seldom, so I've forgotten how. Could someone please refresh my memory on how to add an array property to a class at design and/or run time? TIA
>
>Include a size after the name:
>
>this.AddProperty("aSomething[1]")
>
>
>You can change the size later if needed or make it wahtever size you need at the start.

Adding the size to the property name was the clue I needed - thanks.

As a side note, I thought of AddProperty() but that does not seem to be present in VFP5.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform