Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collections
Message
From
25/12/2001 15:38:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00598067
Message ID:
00598073
Views:
21
>How do I create a collection in VFP?

As an object with an array property. It should have a this_access and this_assign method, which will somehow store the names of the objects in the array, and retrieve them by name. Thus when you mention oColl.items("shoe"), oColl_access will receive "shoe" as a parameter, and your code should find that "shoe" is the name of .items[5] and it should return items[5]. The additem method should take care of storing the names and indexes in an appropriate place.

Basically, that's what I saw how collections are created in a framework.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform