04-10-2008, 07:25 AM
Not bug, but QM and VB work slightly differently. QM is more raw.
f=fInbox.Folders.Item("test")
In VB you can skip Item function of collections to make code shorter.
----
To disable type checking and catch any error at run time, declare variables as IDispatch.
IDispatch f
IDispatch fInbox=ns.GetDefaultFolder(Outlook.olFolderInbox)
f=fInbox.Folders("test")
out f
f=fInbox.Folders.Item("test")
In VB you can skip Item function of collections to make code shorter.
----
To disable type checking and catch any error at run time, declare variables as IDispatch.
IDispatch f
IDispatch fInbox=ns.GetDefaultFolder(Outlook.olFolderInbox)
f=fInbox.Folders("test")
out f
