This is a multi-part message in MIME format.
------=_NextPart_000_0014_01C52F88.E7C7DCE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I have a problem when I'm trying to delete an appoint from Outlook =
through Foxpro. Here's the code I'm using :=20
oOutlook =3D CREATEOBJECT('Outlook.Application')
oNameSpace =3D oOutlook.getNameSpace('MAPI')
oAppts =3D oNameSpace.getDefaultFolder(9)
cString =3D 'My apppointment'
oDelAppt =3D oAppts.Items.Find(cString)
IF (TYPE('oDelAppt') =3D 'O') AND !ISNULL(oDelAppt)
oDelAppt.Delete() <----- Error
ENDIF
When I issu the 'delete()' command I get an error 'Parameter is not =
optional'.
I've tried this on Foxpro 8 & Foxpro 9 with Oulook 2003.
Any ideas ?
greetings
Xavier
------=_NextPart_000_0014_01C52F88.E7C7DCE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2604" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P><FONT face=3DArial size=3D2>Hi all,</FONT></P>
<P><FONT face=3DArial size=3D2>I have a problem when I'm trying to =
delete an appoint=20
from Outlook through Foxpro. Here's the code I'm using : </FONT></P>
<P><FONT face=3DArial size=3D2> oOutlook =3D=20
CREATEOBJECT('Outlook.Application')<BR> oNameSpace =3D =
oOutlook.getNameSpace('MAPI')<BR> oAppts =3D=20
oNameSpace.getDefaultFolder(9)</FONT></P>
<P><FONT face=3DArial size=3D2> cString =3D 'My=20
apppointment'</FONT></P>
<P><FONT face=3DArial size=3D2> oDelAppt =3D=20
oAppts.Items.Find(cString)<BR> IF (TYPE('oDelAppt') =
=3D 'O') AND=20
!ISNULL(oDelAppt)<BR> =
oDelAppt.Delete()=20
<----- Error<BR> ENDIF</FONT></P>
<P><FONT face=3DArial size=3D2>When I issu the 'delete()' command =
I get an=20
error 'Parameter is not optional'.<BR>I've tried this on Foxpro 8 & =
Foxpro 9=20
with Oulook 2003.</FONT></P>
<P><FONT face=3DArial size=3D2>Any ideas ?</FONT></P>
<P><FONT face=3DArial size=3D2>greetings<BR>Xavier</FONT></P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<P><FONT face=3DArial size=3D2></FONT> </P></DIV></BODY></HTML>
------=_NextPart_000_0014_01C52F88.E7C7DCE0--