Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook is closed after release an object
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Outlook is closed after release an object
Miscellaneous
Thread ID:
00458982
Message ID:
00458982
Views:
56
Hello, I'm using this code to access to address book entries.
It works OK !,

**************
* Init method of cboAddressBook control
oOutlook = CREATEOBJECT("Outlook.Application")
oNameSpace = oOutlook.GetNameSpace("MAPI")
oAddressBook = oNameSpace.AddressLists("Lista global de direcciones")
With oAddressBook.AddressEntries
For i = 1 To .Count
This.AddItem( .Item[i].Name )
Next
EndWith
Release oAddressBook, oNameSpace, oOutlook
**************

The problem is when oOutlook object is released because if any other instance of Microsoft Outlook were opened before this code was runned, they are closed in anyway.

Any suggestion ???
Thanks in advance!!
Esteban Bruno
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Next
Reply
Map
View

Click here to load this message in the networking platform