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:

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.

Default Value

Initial value: null

See also:

Class wwWebListControl | wwWebListControl::SelectedValue

© West Wind Technologies, 1996-2024 • Updated: 04/15/12
Comment or report problem with topic