Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection Object
Message
De
07/10/1999 12:17:00
 
 
À
06/10/1999 23:55:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00273466
Message ID:
00273767
Vues:
26
>>>Sure, the array could reference an object and use it's PEMs, but I'm looking for the array to be an object itself. Even if I stored an object reference in the array, I don't think an array would respond to a PEM, such as:
>>
>>MyArray(1).Click()
>
>The array is not an object/class. But its elements can be objects. So, if MyArray(1) is an object that has a Click method, then MyArray(1).Click() will work.
>
>The downsize of using an array is that you cannot add properties/methods to an array. This is why I suggested a Container class.
>
>Vlad

Vlad,

You can add properties to an "array object".

DIMENSION MyArray[5]
MyArray[1] = CREATEOBJECT('Line')
MyArray[1].AddProperty('Test',5) seems to work just fine!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform