Click or drag to resize

IActivityLinksRemoveSale Method

Method for removing a sale from the list of links Never implemented

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

Parameters

pVal
Type: SuperOffice.COM.SuperOfficeDBSOSale
SoSale - The sale you want to remove from the appointment
Examples
VB
dim db
Dim msg, app, links, sale
Set db = CreateObject("SuperOfficedb.Database")
if db.login("USERNAME","PASSWORD") then

    set app = db.GetAppointment(3)
    set links = app.ActivityLinks
    links.AddSale(db.GetSale(2))
    app.Save()
    For Each sale In links.Sales
        msg = msg & sale.title & vbCrLf
    Next

    MsgBox(msg)

    'remove the sales
    For Each sale In links.sales
        links.RemoveSale(sale)
    Next
    app.Save()
    MsgBox("done")
else
    MsgBox "Could not log on"
end if
Set objSO = Nothing
See Also