GetDocStatusCountEx

Gets count of all the document of a particular status                                                                          

GetDocStatusCountEx(ByVal FolderId As Long,

ByVal sDocStatus As String,

Count As Long,

lHighPriorityCount As Long) As Long

 

Parameters

In/out

Name

Data type

Description

In

FolderId

Long

Index of document

In

SdocStatus

Single

Status,of which we want to fetch the count of documents

Out

Count

Long

Number of document having that status

Out

LhighPriorityCount

Long

Number of document of high priority

 

Description

This function is used to get the count of all those documents who have a particular status (as supplied) in a folder. Unread action Items (in a way documents) in a folder have status “A” and those which have been read have status “R”

 

Return value 

Name

Description

NG_SUCCESS

In case of success

-3

Cabinet not connected

-4

Invalid operation

 

Example

Dim FolderId                   As Long

Dim sDocStatus             As String

Dim Count                     As Long

Dim lHighPriorityCount    As Long

Dim lRetVal                   As Long

FolderId = 34

sDocStatus = “A”

lRetVal=gPDb(miCurCabId).GetDocStatusCountEx(FolderId,sDocStatus,Count,lHighPriorityCount)

  if lRetVal <> NG_SUCCESS Then

    MsgBox gPDb(miCurCabId).ErrDescription, vbInformation

     Screen.MousePointer = vbNormal

Endif