ItemByName method: Query collection

Syntax

ItemByName(Name)

Description

The ItemByName method returns the Query object with the name Name.

Parameters

Parameter Description

Name

Specify the name of an existing Query within the Query collection. If you specify an invalid name, the object is NULL. The length of this parameter is 30 characters.

Returns

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

Example

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