AddKeywordWithDocument
To associate Keyword with document.
Public Function AddKeywordWithDocument(ByVal DocId As Long,ByRef Keywords() As String) As Long
Parameters
In/out |
Name |
Data type |
Description |
In |
DocId |
Long |
Document Id |
In |
Keywords |
String |
Keywords list. |
Description
This function call is used to associate keywords with the document.
Return value
Name |
Description |
1 |
In case of success |
-3 |
Cabinet not connected. |
-2 |
Invalid operation in read only cabinet. |
Example
Dim DocId As Long
Dim Keywords() As String
Dim gPDb As PanDb.pdbCls
Set gPDb = New PanDb.pdbCls
DocId = 46
ReDim Keywords(0)
Keywords(0) = “Remark”
lRetVal=gPDb.AddKeywordWithDocument(DocId,KeyWord)
if lRetVal <> NG_SUCCESS Then
MsgBox gPDb.ErrDescription, vbInformation
Screen.MousePointer = vbNormal
Endif