ItemByName method: QueryCriteria collection

Syntax

ItemByName(CriteriaName)

Description

The ItemByName method returns the QueryCriteria object that exists with the passed CriteriaName in the QueryCriteria collection.

Parameters

Parameter Description

CriteriaName

Specify the name of the Criteria to be searched. This name is the same as the one used while creating the criteria using QuerySelect.AddCriteria(CriteriaName).

Returns

A reference to a QueryCriteria object if successful, NULL otherwise.

Example

&MyQueryCriteria = &MyCollection.ItemByName("PHONELIST");