Article ID: 147283
Article Last Modified on 9/30/2003
********************************
* Begininig Of Program *
********************************
PUBLIC appt,x,count,st,end,what,notes,fAppt
x=CreateObject('scheduleplus.application.7')
IF !x.loggedon()
x.logon
ENDIF
appt=x.Schedulelogged.appointments
count=0
appt.reset
count=1
y=96
FOR m=1 to 12
FOR d=1 to 28
when=alltrim(str(m))+"/"+alltrim(str(d))+"/"+alltrim(str(y))+;
" "+right(ttoc(datetime()),11)
when2=alltrim(str(m))+"/"+alltrim(str(d))+"/"+alltrim(str(y))+;
" "+right(ttoc(datetime()+3600),11)
IF count<100
oappt=appt.new
oappt.start=when
oappt.end=when2
myval="test appointment: "+alltrim(str(count))
oappt.notes=myval
oappt.text=myval
oappt.busytype=1
count=count+1
oappt=.NULL.
ELSE
EXIT
ENDIF
ENDFOR
IF count>100
EXIT
ENDIF
ENDFOR
********************************
* End Of Program *
********************************
********************************
* Begininig Of Program *
********************************
CLEAR ALL
PUBLIC appt,x,count,st,end,what,notes,fAppt
x=CreateObject('scheduleplus.application.7')
IF !x.loggedon()
x.logon
ENDIF
appt=x.Schedulelogged.appointments
appt.reset
DO WHILE !(appt.isendoftable)
<WWFIXEDTEXT><![CDATA[
IF (TYPE('appt.item.busytype.value')!='N' OR appt.item.busytype.value=0)
whichone=appt.item.itemid.value
appt.deleteitem(whichone)
ENDIF
appt.skip
ENDDO
CLEAR ALL
********************************
* End Of Program *
********************************
********************************
* Begininig Of Program *
********************************
PUBLIC x,count,st,end,what,notes,fAppt
x=CreateObject('scheduleplus.application.7')
IF !x.loggedon()
x.logon
ENDIF
appt=x.Schedulelogged.appointments
appt.reset
count=0
dime myarr(100,3)
oldval=set('safety')
SET SAFETY OFF
CREATE TABLE apptlist (Text c(40), Start T(10),End T(10))
SET SAFETY &oldval
DO WHILE NOT(appt.isendoftable)
myarr=appt.getrows(100, "Text","Start","End")
append from array myarr
ENDDO
fAppt=CreateObject('form')
fAppt.Addobject('Grid1','Grid')
fAppt.width=800
WITH fAppt.Grid1
.visible=.t.
.left=50
.top=20
.width=650
ENDWITH
GO TOP
fAppt.show
********************************
* End Of Program *
********************************
Additional query words: VFoxWin splus
Keywords: kbcode KB147283