wwWebListControl::SelectedValues

A collection of selected values when the control is set to multiselect mode.

You can check for the number of selected values like this:

foxpro
foxpro
IF this.lstChoices.Count > 0 FOR lnX = 1 to this.lstChoices.Count lcOutput = lcOutput + this.lstChoices.SelectedValues.Item(lnX) + "<hr>" ENDFOR this.lblMessage.Text = lcOutput ENDIF

Note that SelectedValues is used only if the control is in MultiSelect mode. Otherwise use SelectedValue to retrieve selection status. SelectedValue is always set even on multiple selections in which case the first value is the SelectedValue.

Parameters

Initial value: null

See also

Class wwWebListControl
wwWebListControl::SelectedValue

© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic