QueryField Class Methods

In this section, we discuss each QueryField method. The methods are discussed in alphabetical order.

Syntax

AddTranslateExpression(ExpressionName)

Description

Use the AddTranslateExpression method to add Translate Effective Date Logic expressions for translatable fields.

Parameters

Field or Control

Definition

ExpressionName

Specify the name of the expression name that you want to add.

Returns

A reference to a QueryExpression object.

Syntax

AddTranslateField(FieldName)

Description

Use the AddTranslateField method to add a Translate Effective Date Logic field for a translatable field.

Parameters

Field or Control

Definition

FieldName

Specify the name of the translate field that you want to add. The maximum allowed length of this parameter is 18 characters.

Returns

A reference to a QueryField object.

Syntax

GetImageFormat()

Description

Use the GetImageFormat method to differentiate between images and files, both stored as binary large objects (BLOBs) in the database.

Note: Because images and files share the field type value 8, this method is required to differentiate between the two types.

Parameters

None.

Returns

A number. A value 16 indicates that the field is of type file (or attachment).