Description
Read-only. Returns the number of items added to the ChoiceDialog. This method can be used to limit the number of items listed in the ChoiceDialog if there, especially if there is a possibility that a huge number of items could be retrieved from a database.
Applicable Events
Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify
Syntax
object.GetCount
Parameters
Object is a reference to the ChoiceDialog object. For more information, see ChoiceDialog Object (page ChoiceDialog Object).
GetCount is the command.
Example
Rs.MoveFirst
While not rs.Bof and not rs.Eof
If ChoiceDialog.GetCount > 50 Then
Exit
End if
… Add items …
rs.MoveNext
Wend