Click or drag to resize

IDatabaseCreateAppointment Method

Returns a blank Appointment. Use SetDefaults on the returned object to fill it with sensible data.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOAppointment CreateAppointment()

Return Value

Type: SOAppointment
SOAppointment – an appointment record
Examples

*Create an appointment *

VB
dim objdb
dim objapp
set objdb =  CreateObject("superofficedb.database")
isOK = objDB.login("<username>", "<password>") ' log in to the database
If isOK Then
    set objapp = objdb.createappointment()
    objapp.setdefaults()
    objapp.contact = objdb.getContact(3)
    objapp.description  = "board meeting"
    objapp.save
else
    msgbox  "unable to connect to database"
end if
set objso = nothing

See Also