Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Public Function SelectFirstListVal (
cboBox As Control,
Optional ZeroIsEmpty As Boolean = False,
Optional ForceSelect As Boolean = False
) As Boolean

If the combo has no selected value, select the first row.

cboBox as Control

The ComboBox control

Optional ZeroIsEmpty as Boolean = False

Consider a zero value as no selected value

Optional ForceSelect as Boolean = False

Force selection of the first row, even if a value is selected

Call Template:

Dim b As Boolean
b = xf.Controls.SelectFirstListVal(cboBox)
b = xf.Controls.SelectFirstListVal(cboBox, ZeroIsEmpty, ForceSelect)

See Also:

Example 1:

SelectFirstListVal(cboTest)
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd