Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug? with MS Outlook typelib QM compiler syntax checking
#2
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)