Click or drag to resize

IScriptingEventsOnCurrentContactBusinessChanged Method

Called when the contact is about to be saved, and the business field has changed value since the object was loaded.

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnCurrentContactBusinessChanged(
	int oldValue,
	int newValue
)

Parameters

oldValue
Type: SystemInt32
newValue
Type: SystemInt32
Examples

Description

This text may be copied to the notepad, and saved as a *.vbs file.

VB
sub OnCurrentContactBusinessChanged (oldValue, newValue)
    if oldvalue = 3 then
        set newApnt = database.createappointment
        newApnt.SetDefaults
        newApnt.description = "The business was changed from: " & oldvalue
    end if 
End Sub

See Also