Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Public Function ClearComboIfValNotCurrent (
cboBox As Control,
Optional SetToVal As Variant = Null
) As Boolean

Clear the combo box if the currently selected value is no longer in the list. Returns True if the value was cleared.

cboBox as Control

The ComboBox control

Optional SetToVal as Variant = Null

The value to set to clear the combo (defaults to Null)

Call Template:

Dim b As Boolean
b = xf.Controls.ClearComboIfValNotCurrent(cboBox)
b = xf.Controls.ClearComboIfValNotCurrent(cboBox, SetToVal)

See Also:

Example 1:

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