home *** CD-ROM | disk | FTP | other *** search
- * Test code for Schedule+ Meeting functions.
-
- * load the FLL.
-
- SET LIBRARY TO foxmapi.fll
-
- * start a MAPI session.
-
- hmapisession = 0
- retval=mplogon(0, "", "", 3, 0, @hmapisession)
-
- * Find first meeting.
-
- lpszmesgid=""
- retval=mpfindnext(hmapisession, 0, "IPM.Microsoft Schedule.MtgReq", "", 0, 0, @lpszmesgid)
- WAIT WINDOW "The MPFindNext code is " + STR(retval)
-
- * Read meeting into cursors.
-
- retval = spreadmeet(0, 0, lpszmesgid, 0, 0, "SPlusMesg", "", "MapiRecip", "", "", "SPlusAppt", "", "SPlusAttd", "MapiAttd")
- WAIT WINDOW "return from SPSaveMeet = " + STR(retval)
-
- IF retval = 1001
-
- * Replace text and save meeting. Setting lpszItemID to an empty
- * string will cause schedule+ to create a new appointment rather
- * than updating the one read above.
-
- SELECT splusappt
- GOTO TOP
- REPLACE splusappt.text WITH "Hello from foxprow"
- lpszitemid = ""
-
- retval=spsaveappt(hsession, 0, "MapiRecip", "SPlusAppt", "SPlusAssoc", "SPlusAttd", "MapiAttd", 0, 0, lpszitemid)
- WAIT WINDOW "return from SPSaveAppt = " + STR(retval)
- ENDIF
-
- * Logout of MAPI.
-
- retval=mplogoff(hmapisession, 0, 0, 0)
-
- SET LIBRARY TO
-
-