Type distinguishes different kinds of documents: 4 = document, 8=draft, 9=mergedoc
All documents have a record in the appointment table with a document_id > 0. This property returns the type value as recorded in the appointment table. All documents have type = 4
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxProperty Type As Integer
Get
Set
Dim instance As IDocument
Dim value As Integer
value = instance.Type
instance.Type = value
property int Type {
int get ();
void set (int value);
}
Property Value
Type:
Int32Long – type of appointment
ExamplesType
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
MsgBox "The type of current document: " & objSO.CurrentDocument.Type, vbInformation + vbOKOnly, "SuperCOM"
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also