Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI class and reading email from outlook express
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00248808
Message ID:
00248985
Vues:
20
>How many messages are in your inbox? I don't know what is causing this error, only two things I can think of: 1) Too many messages in your inbox (although I've got hundreds on my notebook where I wrote the class and it didn't complain. 2) One of your messages is messed up or different in some way. I'd backup my inbox and then delete the messages a dozen at a time, try readmail after each delete until the message stops (hopefully). Then reload the whole lot and look closely at the latest deletes.
>
>Sorry I can't be of any more assistance at the moment but I've not had any problems with the class (or any reports of this problem). I'd like to know if and how you kill this problem.


Hi Nigel,

I deleted all the messages(had only 5 of them) and tried it again.
No errors when there is no messages in the inbox, the readmail function worked fine this time. However, as soon as i add one message in the inbox, the error pops up again. I tried many messages, just to be sure.

I decided to modify the call to the readmail function.
Removing the foxpro error messages before calling it, and activating them again after the call. This will suppress the error message and i can still use the return code from the readmail function to check if something went wrong.

Here is what i did:

****************
on error z=0
ErrCode=thisform.mapi1.readmail()
on error
*****************

Not the best, but it does the job. I wonder if it has something to do with the mapi ocx/dll versions i have?
--
Steven Boudreault
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform