brCount property

Returns the total number of items in a select list.

Syntax

lValue = object.brCount

Parameters

Parameter Description
lValue The return value is a Long data type indicating the number of items.
object An object variable that represents a clsD3SelectList object.

Returns

For RPC connections, may return a negative number indicating a partial list.

Example

Sub ListFiles_Click()
   Dim oList As clsD3SelectList
 
   OpenConnection ' Subroutine to establish connection
 
   Set oList = oConn.brSelect()
   ListBox1.Clear
 
   If oList.brCount> 0 Then
      While Not oList.brEOL
      oList.brReadnext
      ListBox1.AddItem oList.brItemId
      Wend
   Else
      ListBox1.AddItem "No files in this account"
   End If
 
   oConn.brCloseSelectList oList
   CloseConnection ' Subroutine to close connection
End Sub

AQL Reference

count