Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook phone book question II
Message
From
04/12/2006 10:38:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Title:
Outlook phone book question II
Miscellaneous
Thread ID:
01174611
Message ID:
01174611
Views:
53
CREATE CURSOR emaillist ;
(Firstname C(30), Lastname C(30), email C(30))


#define olFolderContacts 10

outlook = CreateObject("Outlook.Application")
namesp = outlook.GetNamespace("MAPI")
folder = namesp.GetDefaultFolder(olFolderContacts)
contacts = folder.Items
cnt = contacts.Count

SELECT 0
SELECT emaillist

For i = 1 To cnt
contact = contacts.Item(i)
IF contact->FirstName = ' ' OR contact->LastName = ' ' OR contact->Email1Address = ' ' <<----When there are 10 email address in the phone book . There is a 10 dialog box prompt.
HOw can solve it ???
Please help , if the user got 200 email, the dialog box will prompt out 200 times???
Next
Reply
Map
View

Click here to load this message in the networking platform