Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook automation method
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00459181
Message ID:
00459243
Views:
27
Hi Markus!

I tried your code to my application but an error occured, my solution is to replace:

GetObject(, "Outlook.Application") to CreateObject("Outlook.Application")

then it works ok.....

Thanks for your shared ideas....

**************************************************
** Your message

Hi Vidar

This will show you the first Email in the Inbox


oOutlook = GetObject(,"Outlook.Application")
oNameSpace = oOutlook.GetNameSpace("MAPI")
oExplorer = oOutlook.Explorers.Add(oNameSpace.Folders[1],0)
oExplorer.Activate()
oInbox = oNameSpace.GetDefaultFolder( 6 )
omyItem = oinbox.Items(1)
omyItem.Display

HTH
Markus
Joe Mamokan
Database Specialist
Email Address: mamokan@eudoramail.com
Url Address: http://visnet_dd.tripod.com
"Can you VISUALIZE Quick Data Access"
Cell # +639172482033
Previous
Reply
Map
View

Click here to load this message in the networking platform