AddQuerySelectedField method: QuerySelect class
Syntax
AddQuerySelectedField(QueryRecordName, RecordAlias, FieldName, Heading)
Description
The AddQuerySelectedField method adds a query field to the query definition, as a QuerySelectedField. This method returns a reference to a new QuerySelectedField object that you can then use to specify attributes for the query definition. At the time it's added, it isn't an output field. This can be changed by setting the column number of the field to a value greater than zero.
Parameters
| Parameter | Description |
|---|---|
|
QueryRecordName |
Specify the name of the query record to which the field that you want to add belongs. |
|
RecordAlias |
Specify the alias of the record (such as A, B, C, and so on.) The length of this parameter is 1. |
|
FieldName |
Specify the name of the field that's being added. The maximum allowed length for a field name is 18 characters. |
|
Heading |
Specify the heading of the field that's being added. The maximum allowed length for a heading is 30 characters. |
Returns
A reference to a QuerySelectedField object.