FormComboBoxControl.hasChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
hasChanged() |
Sets or returns a value that indicates whether the contents of the form combo box control have changed. |
hasChanged(Boolean) |
hasChanged()
Sets or returns a value that indicates whether the contents of the form combo box control have changed.
public:
override bool hasChanged();
public override bool hasChanged ();
override this.hasChanged : unit -> bool
Public Overrides Function hasChanged () As Boolean
Returns
true if the contents of the combo box control have changed; otherwise, false.
Remarks
The following example shows how to return and set the value that indicates whether the contents of the combo box control have changed.
boolean bHasChanged;
// The ctrl variable was previously assigned
// as a FormComboBoxControl variable.
// Retrieve the hasChanged value.
bHasChanged = ctrl.hasChanged();
// Modify the hasChanged value.
ctrl.hasChanged(true);
Applies to
hasChanged(Boolean)
public:
override bool hasChanged(bool _val);
public override bool hasChanged (bool _val);
override this.hasChanged : bool -> bool
Public Overrides Function hasChanged (_val As Boolean) As Boolean
Parameters
- _val
- Boolean
A value to assign as the hasChanged value for the combo box control; optional.