Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to define an array property
Message
De
20/09/2001 13:54:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00558845
Message ID:
00558852
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>Hi:
>
>I forgot how to define an array as a property in class. Can anyone help?
>
>Thanks!
>
>--Paul

If the class is in a class library, when you add the property (on the menu), name the property like this:
myproperty[1,1]
In the init or load of the class, you can redimension the property to whatever size you need.

For a programmatic class (in a .prg file), you simply the following in the first section of the class:
dimension myProperty[1]
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform