Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How create a FoxPro object collection
Message
 
 
To
03/07/2002 17:05:06
Daniel Antich
Informática Industrial
Heredia, Costa Rica
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00675126
Message ID:
00675149
Views:
16
VFp doesn't have collection class. See Collection of Classes Message #672226 for workarounds.

>Hi,
>I know how VFP can use objects collection. For example, with the next code I can process each message in the outlook inbox:
>
>oOutlook = CreateObject("Outlook.Application")
>oNameSpace=oOutlook.GetNameSpace("MAPI")
>
>oMessages = oNameSpace.GetDefaultFolder(olFolderInbox) && olFolderInbox=6
>
>FOR EACH Item IN oMessages.Items
> WITH Item
> ....
> ....
> ENDWITH
>ENDFOR
>
>Now, I am writing a VFP COM server and need create a class with an object collection same as Outlook "oMessages" for store each invoice items.
>
>How can I indicate that my class is a object collection?
>
>Thanks in advance
>Daniel
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform