GetIndexesForDocument
Fetch indexes associated with a document
Public Function GetIndexesForDocument(ByVal DocumentId As Long,ByVal Flag As Integer, IndexCount As Long, IndexList() As Byte) As Long
Parameters
In/out |
Name |
Data type |
Description |
In |
DocumentId |
Long |
Index of document with which associated indexes are to fetched |
In
|
Flag |
Integer |
Type of index to be fetched - '1' for normal document and '2' for linked documents |
Out |
IndexCount |
Long |
Number of indexes fetched |
Out |
IndexList |
Byte[TagIndex] |
List of Indexes fetched in the form of byte array |
Description
This function is called in desktop from both local and shared cabinet. It is called when document Properties are fetched. It returns the list of index associated with a document.
Return value
Name |
Description |
1 |
In case of success |
-3 |
Cabinet not connected |
-4 |
Invalid operation |
Example
Dim DocumentId As Long
Dim Flag As Integer
Dim IndexCount As Long
Dim IndexList() As Byte
Dim lRetVal As Long
Dim gPDb As PanDb.pdbCls
Set gPDb = New PanDb.pdbCls
DocumentId = 70
Flag = 1
lRetVal=gPDb.GetIndexesForDocument(DocumentId,Flag,IndexCount,IndexList)
if lRetVal <> NG_SUCCESS Then
MsgBox gPDb.ErrDescription, vbInformation
Screen.MousePointer = vbNormal
Endif