Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP & C++
Message
De
09/12/1998 04:09:01
 
 
À
08/12/1998 20:24:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00165049
Message ID:
00165444
Vues:
8
>>1. obj.Prop(x) where x can be 1 .... 999 (or so) And each property itself can be integer, char or logical etc. e.g.: obj.Prop(5)=34
>>
>>2. obj.Prop(x) where x is an array containig the elements, that your object will use
>>
>>3. obj.Prop(x) where x is an array containig the elements, that your object will use and may change, and thus, calling program want to use?
>>
>>
>>1. and 2. case is no problem in VFP 5. But 3. case is available only in VFP 6 by comarray.
>
>How do you declare the property in VC++ for the cases 1 and 2?
>
>Vlad
All 3 cases can be declared by Class Wizzard. And there are different solutions:

1. normal parametrized property and make a parameter as integer type.
2. normal parametrized property and make a parameter as VT_ARRAY type.
3. normal parametrized property and make a parameter as VT_ARRAY by ref type.

Instead of these, you can make a method that takes 1 parameter (type of this see above).

BB
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform