Sign in Join
FPDoc Onlineexperiment

TCustomTaskDialog.QueryItemIndex property

Member of TCustomTaskDialogpublicIn unit Dialogs

Ordinal position for the value in QueryChoices selected when the task dialog is executed.

Declaration

pascal
property QueryItemIndex: Integer read FQueryItemIndex write FQueryItemIndex;

Description

QueryItemIndex is an Integer property which contains the ordinal position for the selected value in the QueryChoices on the dialog. It contains the initial item in QueryChoices selected when the Execute method is called. It is updated with the option selected during execution of the dialog form.

Use QueryResult to access the string value for the selected item in QueryChoices.

QueryItem and QueryResult are relevant when tfQuery has been included in the Flags for the task dialog.

Use ModalResult to determine the button or key combination used to complete execution of the dialog form.

Added in LCL version 4.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.