Share via


FormTreeControl.hasChanged Method

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

Syntax

public boolean hasChanged([boolean val])

Run On

Client

Parameters

  • val
    Type: boolean
    The value to assign as the hasChanged value for the tree control.

Return Value

Type: boolean
true if the contents of the tree control have changed; otherwise, false.

Examples

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

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

See Also

Reference

FormTreeControl Class