Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning Array
Message
From
05/07/2000 14:13:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00387916
Message ID:
00388434
Views:
11
>>>No. Myproperty is not a custom property. It is a ActiveX control propety.
>>
>>I've not seen any controls that use arrays as ActiveX properties, but I've not had a lot of exposure to a lot of different controls. They're usually not arrays, they're structures. There are a couple of files here that help with that sort of thing. There's STRUCT.ZIP File# 346 and CLSHEAP.ZIP File#94826.
>
>Not that it will help in this discussion because I haven't found a work around for it, but an example of this can be found using the ADSI ActiveX control.
>
>There is a Filter property that accepts an array. You can use this property to filter out items of a particluar type when looping through the members collection of any ADSI container object.

FWIW, you can't use the Filter property of an ADSI container object from VFP, because VFP arrays don't translate into COM SafeArrays when you assign them.

The same is true of any ActiveX array property- they are generally implemented as SafeArrays, which leaves VFP programmers out in the cold, unless they really want to dig in to the systems functions it takes to manually build a SafeArray.

Luckily, with the filter property, you can work around this by checking the Class property of each child.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform