Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook Delete stop working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00839827
Message ID:
00839838
Vues:
38
This message has been marked as the solution to the initial question of the thread.
Yuri,

This error is usually cured by prefixing method call with "=".
= loNameSpace.GetItemfromID(EntryID,lcFolderID).DELETE()
* or if it doesn't work
loFolder = loNameSpace.GetItemfromID(EntryID,lcFolderID)
= loFolder.Delete()
>All of a sudden the program working for months cleaning the folders in MS Outlook 2000 SR1 (9.0.0.4527) stopped with the error message "Parameter is not optional" on the line with DELETE:
>
>loOutlook = creAteOBJECT("outlook.application")
>loNameSpace = loOutlook.APPLICATION.GetNamespace('MAPI')
>.......
>loNameSpace.GetItemfromID(EntryID,lcFolderID).DELETE
>(delete the message having entryid in the folder having lcFolderID)
>
>Trying to resolve it with various syntax combinations and approaches I finally give up.
>
>Any ideas will be appreciated.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform