home *** CD-ROM | disk | FTP | other *** search
- * Test code for Schedule+ FreeBusy function.
-
- * load the FLL.
- SET LIBRARY TO foxmapi.fll
-
- * start a mapi session.
-
- hmapisession = 0
- retval=mplogon(0, "", "", 3, 0, @hmapisession)
-
- * create cursors for recipients.
-
- =mpcursor("MapiRecip")
-
- * clear reciepient cursor and set initial values.
-
- SELECT mapirecip
- SET SAFETY OFF
- ZAP
- SET SAFETY ON
- APPEND BLANK
-
- REPLACE reserved WITH 0
- REPLACE recipclass WITH 0
- REPLACE eidsize WITH 0
- REPLACE entryid WITH ""
-
- * Call MPResolve to fill in MapiRecip with details
- * for user Chriscap.
-
- retval=mpresolve(0, 0, "Chriscap", 9, 0, "MapiRecip")
- WAIT WINDOW "The MPResolveName code is " + STR(retval)
-
- * Begin schedule+ session.
-
- hsession = 0
- retval=spbegin(0, 0, 0, 0, @hsession)
-
- lpszhaveinfo=""
-
- * Fill FreeBusy array for user Chriscap for June 1993.
-
- retval=spfreebusy(hsession, 0, 1, "MapiRecip", "1993/06", 0, 0, @lpszhaveinfo, "FreeBusy")
- WAIT WINDOW "return from SPFreeBusy = " + STR(retval)
- ? freebusy[1]
- ? freebusy[2]
- ? freebusy[12]
- ? freebusy[13]
- ? freebusy[16]
-
- * End session and logout.
-
- retval=spend(hsession, 0, 0, 0)
- retval=mplogoff(hmapisession, 0, 0, 0)
-
- SET LIBRARY TO
-
-