DisAssociateDDWithFoldDoc
Called when dataclass is disassociated from a document or folder.
Public Function DisAssociateDDWithFoldDoc( ByVal ObjectId As Long, ByVal ObjectType As String) As Long
Parameters
In/out |
Name |
Data type |
Description |
In
|
ObjectId |
Long |
Index of object from which dataclass is being disassociated |
In
|
ObjectType |
String |
Type of object 'F' for folder / 'D' for document |
Description
This is called when dataclass is disassociated form either a document or a folder.
Return value
Name |
Description |
1 |
In case of success |
-1 |
Invalid operation |
-2 |
Invalid operation in read only cabinet |
-3 |
Cabinet not connected |
Example
Dim ObjectId As Long
Dim ObjectType As String
Dim lRetVal As String
Dim gPDb As PanDb.pdbCls
Set gPDb = New PanDb.pdbCls
ObjectId = 45
ObjectType = “D”
lRetVal=gPDb.DisAssociateDDWithFoldDoc (ObjectId,ObjectType)
if lRetVal <> NG_SUCCESS Then
MsgBox gPDb.ErrDescription, vbInformation
Screen.MousePointer = vbNormal
End If