Chapter 5 Customizing Generation with GTL


.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 "Naming conventions" in the Models chapter of the Core Features Guide ).

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

 


Copyright (C) 2008. Sybase Inc. All rights reserved.