CopyPrivateQuery method: Query class

Syntax

CopyPrivateQuery(QueryName, QryType, TargetUserID)

Description

The CopyPrivateQuery method copies the query from the current user to a user specified by the target user ID.

Parameters

Parameter Description

QueryName

Name of the query to be copied, as a string.

QryType

Specify the type of query. This parameter takes either a numeric or constant value. See below.

TargetUserID

The user ID to which the query is to be copied, as a string.

The values for QryType can be as follows:

Numeric Value Constant Value Description

1

%Query_Query

Find queries of the type Query.

4

%Query_Role

Find queries of the type Role.

5

%Query_DBAgent

Find queries of the type Process.

7

%Query_Archive

Find queries of the type Archive.

Returns

0 if successful.