Intellisense pulls info about Outlook.Application object methods and properties from it's type library. That's how it knows that oFolder.Items(1) is an object. On other hand oMessage.aAttachment(1) is an VFP array item that could hold any data type.
>When I instantiate an Outlook.Application object (with MAPI namespace, taskfolder, etc.) I eventually wind up with a TaskFolder object. In the command window, I can do the following:
>
>oApp = createobject("Outlook.Application")
>oName = oApp.GetNameSpace("MAPI")
>oFolder = oName.GetDefaultFolder(13) && Task Folder
>
>Now I can type oFolder.Items(1). at which point intellisense pops up the methods and properties associated with the Item object.
>
>However, I've created two classes. The first (Message) has an array that stores Attachment objects (attachment being the second class). When I, from the command window, type the following:
>
>oMessage.aAttachment(1).
>
>there is no intellisense popup for my properties and methods. However, if I type:
>
>oAttach = oMessage.aAttachments(1)
>oAttach.
>
>then I get my intellisense popup.
>
>Can anyone explain why this happens and how I could get the popup using the oMessage.Attachment(1). syntax.
>
>Thanks.
--sb--