ModifyKeywords

This function is used to modify the keywords created in a cabinet.

Public Function ModifyKeywords( ByRef Keywords() As String, ByVal KeywordCount As Long, ByVal NewKeyword As String) As Long

 

Parameters

In/out

Name

Data type

Description

In/Out

Keywords

String

Keyword list that is to be modified

In

KeywordCount

Long

Number of keywords to be modified

In

NewKeyword

String

New keywords

 

Description

This function is called on both local and shared cabinet. It is called when keywords are modified from desktop for local cabinet and from admin for shared cabinet. It can accept a list of keywords to be modified.

 

Return value

Name

Description

 1

In case of success

-2

Invalid operation in  read only cabinet

-3

Cabinet not connected

-201

Insufficient rights for the current operation

 

Example

Dim  Keywords()          As String

Dim  KeywordCount     As Long

Dim NewKeyword        As String

Dim lRetVal               As Long

Dim gPDb                 As PanDb.pdbCls


Set gPDb = New PanDb.pdbCls

Redim Keywords(0)

Keywords(0)  = “Remark”

KeywordCount = 1

NewKeyword = “Comment”

lRetVal=gPDb.ModifyKeywords(Keywords,KeywordCount,NewKeyword)

if lRetVal <> NG_SUCCESS Then

      MsgBox gPDb.ErrDescription, vbInformation

     Screen.MousePointer = vbNormal

      Exit Sub

End If