Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Public Function SelectFirstIfSingleRow (
cboBox As Control,
Optional AddlEmptyVal As Variant = Null
) As Boolean

If the combo has no selected value, and has exactly one row, select the row.

cboBox as Control

The ComboBox control

Optional AddlEmptyVal as Variant = Null

An optional placeholder value to consider as no selected value

Call Template:

Dim b As Boolean
b = xf.Controls.SelectFirstIfSingleRow(cboBox)
b = xf.Controls.SelectFirstIfSingleRow(cboBox, AddlEmptyVal)

See Also:

Example 1:

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