CriteriaList

The CriteriaList is used in many places in the TokOpen API. It is a collection of TOKOPEN_CRITERIA which defines an index field, its data type, valid values, current value etc... The CriteriaList is typically used for two main purposes, to determine the indexing structure for a drawer, and for creating a list of criteria to perform a search.

 TOKOPEN_CRITERIALIST

 Count as Long
     Read Only, indicates how many criteria are defined. 

 Item(vntIndexKey As Variant) As TOKOPEN_CRITERIA
     References one of the Criteria objects, in the rage 1..Count

  Add (Optional newitem As TOKOPEN_CRITERIA, Optional sKey As String) As TOKOPEN_CRITERIA  
     Adds a new criteria to the collection (if building search criteria).

 Contains (anitem as Variant)  as Boolean 
     Inidicates if the collection contains a specified criteria.

See Also:-

 TOKOPEN_DRAWER

 TOKOPEN_CRITERIA

 TOKOPEN_VIEW

Example Code :-