Nigel,
Even using the VFP command window the folowing code returns allways 0(zero)
I see this e-mail in Outlook Express with 2 xls files attached.
Also tried changing the name of send by to other e-mail with files attached.
SET CLASSLIB TO mapimail ADDITIVE
enviado_por = "Rodolpho - Roldsoft" && send by
data_ini = {^2000/01/01} && start Date
data_fim = DATE() && end Date
loMail = CREATEOBJECT("cusMAPI") && Load class for e-mail
lnMail = loMail.ReadMail("","",.F.,enviado_por,"",data_ini, data_fim,.T.)
* IF lnMail > 0 && ** if exist file send by this person
nMensagem = loMail.GetFirstMessage() && ** get the first message
nArqAtachado = loMail.GetAttachmentCount(nMensagem) && ** verify in an file is attached
? nArqAtachado
&& in this sample its the oldest and the first message in main entry box of outlook express.
&& My version of IE is 5.0 from win2K-pro and tested also in w98 with IE5.0
( both Portuguese ) maibe is this the reason ? send the same prg to a friend
and he received 0 from GetAttachmentCount() function.
Is there a reason to dont work ??
TIA
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only