.delete Macro

This macro deletes all instances of the string del-string from delete-block-input.

.delete (del-string)
	block-input
.enddelete

This macro is particularly useful when you work with naming conventions (see Core Features Guide > The PowerDesigner Interface > Objects > Object Properties > Naming Conventions).

The following parameters are available:

Parameter

Description

del-string

String to be deleted in the input block

Type: Text

delete-block-input

Parameter used to input text

Type: Complex template

Example:

In the following example, GetCustomerName is converted to CustomerName:

.delete( get )
	GetCustomerName
.enddelete

In the following example, the variable %Code% is m_myMember and is converted to myMember:

.delete(m_)
	%Code%
.enddelete