GetFolderProp

Called to fetch the properties of a folder.

Public Function GetFolderProp(ByVal FolderId As Long,ByRef FolderProp() As Byte) As Long

 

Parameters

In/out  

Name           

Data type

Description

In

FolderId

Long

Folder index of the folder.

Out

 

FolderProp

Byte[TagFolder]

Byte Array specifying the folder properties as a return parameter

 

Description

This function is called when folder properties are to be fetched of a specific 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 FolderId            As Long

Dim FolderProp()      As Byte

Dim lRetVal             As Long

Dim gPDb               As PanDb.pdbCls

 

FolderId = 4
Set gPDb = New PanDb.pdbCls

lRetval = gPDb.GetFolderProp(FolderId,FolderProp)

If lRetval <> NG_SUCCESS Then

        Screen.MousePointer = vbNormal

        MsgBox gPDb.ErrDescription, vbInformation

        Exit Sub

 End If