[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TCustomTaskDialog.QueryChoices

Predefined values for the query control on the task dialog.

## Declaration

Source position: dialogs.pp line 818

`public property TCustomTaskDialog.QueryChoices : TStrings read FQueryChoices write SetQueryChoices;`

## Description

QueryChoices is a TStrings property with a list of predefined values that can be selected in the query control on the task dialog. Values in QueryChoices are displayed in a TComboBox control created for the task dialog when tfQuery has been included in the Flags property. Include tfQueryFixedChoices in Flags to make the values in QueryChoices read-only in the combo-box control.

Use QueryItemIndex to determine which value is initially selected in QueryChoices, or returned when the task dialog was executed. Use QueryResult to access the string value returned in the query control.

## Version info

Added in LCL version 4.0.

## See also

TCustomTaskDialog.Flags |  | Set of options enabled for the Task dialog.
TCustomTaskDialog.QueryItemIndex |  | Ordinal position for the value in QueryChoices selected when the task dialog is executed.
TCustomTaskDialog.QueryResult |  | String representation for the query entered or selected on the dialog form.
TCustomTaskDialog.Execute |  | Displays the task dialog and captures the modal result value.
TTaskDialogFlags |  | Set type used to store values from the TTaskDialogFlag enumeration.
TTaskDialogFlag |  | Represents options that can be enabled for TTaskDialog.