Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C0000..5 error when using Outlook automation
Message
De
04/10/2001 12:37:43
 
 
À
28/07/2001 10:22:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00536843
Message ID:
00564257
Vues:
19
Hi Gary,

Thanks for bringing this to our attention. I have passed it up the line.

I can reproduce this by modifying your code slightly:


oOutlook = CREATEOBJECT('outlook.application')
loSpace = oOutlook.GetNameSpace("MAPI")
m.OLSyncFolder = "Inbox"
loSelFolder = .NULL.
FOR EACH loFolder IN loSpace.Folders
FOR EACH loSubFolder IN loFolder.Folders
IF ALLT(loSubFolder.NAME) == m.OLSyncFolder
loSelFolder = loSubFolder
EXIT
ENDIF
ENDFOR
IF !ISNULL(loSelFolder)
EXIT
ENDIF
ENDFOR

IF ISNULL(loSelFolder)
=MESSAGEBOX("Folder '" + m.OLSyncFolder + "' is invalid or not found.",48,"System Message")
RETURN
ENDIF

IF TYPE("loSelfolder")<>"O"
=MESSAGEBOX("Invalid folder selected",48, "Sync Error!" )
RETURN
ENDIF

loContacts = loSelFolder.Items
RETURN


Thanks again!

Jim
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform