SetFormFieldChoiceSelectedIndices

Form fields

Description

Sets selected Choice-field options from comma-separated zero-based indices and keeps the field value and selection-index state consistent

Indices are validated, sorted and deduplicated, and multiple indices require the MultiSelect flag

Syntax

Delphi

Function SetFormFieldChoiceSelectedIndices(Index: Integer; Const SelectedIndices: WideString): Integer;

Parameters

An empty SelectedIndices string clears the current selection

Return value

Returns 1 on success or 0 for an invalid field, index list or selection mode