Partager via


FormControl.hasChanged Method

Definition

Overloads

hasChanged()

Sets or returns a value that indicates whether the contents of the control have changed.

hasChanged(Boolean)

hasChanged()

Sets or returns a value that indicates whether the contents of the control have changed.

public:
 virtual bool hasChanged();
public virtual bool hasChanged ();
abstract member hasChanged : unit -> bool
override this.hasChanged : unit -> bool
Public Overridable Function hasChanged () As Boolean

Returns

true if the contents of the control have changed; otherwise, false.

Remarks

The following example shows how to return and set the value that indicates whether the contents of the control have changed.

boolean bHasChanged; 
// The ctrl variable was previously assigned 
// as a FormControl value. 
// Retrieve the hasChanged value. 
bHasChanged = ctrl.hasChanged(); 
// Modify the hasChanged value. 
ctrl.hasChanged(true);

Applies to

hasChanged(Boolean)

public:
 virtual bool hasChanged(bool _val);
public virtual bool hasChanged (bool _val);
abstract member hasChanged : bool -> bool
override this.hasChanged : bool -> bool
Public Overridable Function hasChanged (_val As Boolean) As Boolean

Parameters

_val
Boolean

The value to assign as the hasChanged value for the control; optional.

Returns

Applies to