IScriptingEventsOnCurrentContactCategoryChanged Method |
Called when the contact is about to be saved, and the category 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
Syntaxvoid OnCurrentContactCategoryChanged(
int oldValue,
int newValue
)
Sub OnCurrentContactCategoryChanged (
oldValue As Integer,
newValue As Integer
)
Dim instance As IScriptingEvents
Dim oldValue As Integer
Dim newValue As Integer
instance.OnCurrentContactCategoryChanged(oldValue,
newValue)
void OnCurrentContactCategoryChanged(
[InAttribute] int oldValue,
[InAttribute] int newValue
)
Parameters
- oldValue
- Type: SystemInt32
- newValue
- Type: SystemInt32
ExamplesDescription
This text may be copied to the notepad, and saved as a *.vbs file.
sub OnCurrentContactCategoryChanged (oldValue, newValue)
if newvalue = 4 then
set newApnt = database.createappointment
newApnt.SetDefaults
newApnt.description = "The category was changed from:" & oldvalue
newApnt.save
end if
End Sub
See Also