Skip to main content

TCustomdxPSExplorerItem.IsNameChanged(string) Method

Determines whether the item’s name is the same as the specified string.

Declaration

function IsNameChanged(const ANewName: string): Boolean; virtual;

Parameters

Name Type
ANewName string

Returns

Type
Boolean

Remarks

This method is used by the report item’s property sheet’s dialog to determine whether the dialog is allowed to close, it passes the report name specified within the dialog as the parameter. If the parameter value matches the item’s name, the method returns False, in this case attempts to close the dialog will succeed. Otherwise, the item’s CanRenameTo method is called to determine if the item can be renamed. If so, the new name is assigned to the item and the dialog is closed. Otherwise, a message box with the CannotRenameMessageText text is displayed and the property sheet’s dialog remains active allowing end-users to correct the name entered.

See Also