GetFolderIdForName

Fetch folder name for Index passed                                                                         

GetFolderIdForName(ByVal ParentId As Long, _

    ByVal FolderName As String, ByRef FolderId As Long) As Long

 

Parameters

In/out

Name

Data type

Description

In

ParentId

Long

Index of Parent Folder

In

Foldername

String

Name of Folder

Out

FolderId

Long

Index of folder a return value.

 

Description

This function is used to fetch the Index of folder by passing its Name.

 

Return value             

Name

Description

NG_SUCCESS

In case of success

-3

Cabinet not connected

-4

Invalid operation

 

Example

Dim ParentId           As Long

Dim FolderName     As String

Dim FolderId           As Long

Dim lRetVal            As Long  

ParentId = 67

Foldername = “MyFolder”

lRetVal=gPDb(miCurCabId).GetFolderIdForName(ParentId,FolderName,FolderId)

    if lRetVal <> NG_SUCCESS Then

    MsgBox gPDb(miCurCabId).ErrDescription, vbInformation

     Screen.MousePointer = vbNormal

Endif