Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email receive
Message
From
31/12/2007 10:39:16
 
 
To
31/12/2007 08:05:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01278474
Message ID:
01278614
Views:
28
How can I access to to custom folder (GetDefaultFolder (6)) take me to the default inbox.

The following code sample should help you figure it out:
oOutlook = CREATEOBJECT( [Outlook.Application] )
oNamespace = oOutlook.GetNamespace( [MAPI] )
loRootFolder = oNameSpace.Folders(1)
FOR EACH loFolder IN loRootFolder.Folders
  ? loFolder.Name
NEXT 
Of course, this assumes that your custom folder is under Personal Folders. If it is under the Inbox, you will have to modify the code above accordingly.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform