Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP & C++
Message
From
09/12/1998 04:09:01
 
 
To
08/12/1998 20:24:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00165049
Message ID:
00165444
Views:
15
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform