General information
Category:
Object Oriented Programming
Title:
How create a FoxPro object collection
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only