Click or drag to resize

IActivityLinksRemoveDocument Method

Method for removing a documentlink Never implemented

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void RemoveDocument(
	SODocument pVal
)

Parameters

pVal
Type: SuperOffice.COM.SuperOfficeDBSODocument
SoDocument - The document you want to remove from the appointment
Examples

RemoveDocument

VB
dim db
Dim msg, app, links, doc
Set db = CreateObject("SuperOfficedb.Database")
if db.login("<username>","<password>") then    

    set app = db.GetAppointment(458)
    set links = app.ActivityLinks
    links.AddDocument(db.GetDocument(84))
    app.Save()
    For Each doc In links.Documents
        msg = msg & doc.filename & vbCrLf
    Next

    MsgBox(msg)

    'remove the documents
    For Each doc In links.Documents
        links.RemoveDocument(doc)
    Next
    app.Save()
    MsgBox("done")
else
    MsgBox "Could not log on"
end if
Set objSO = Nothing

See Also