DeleteSelectedChars

Deletes a specified character sequence from the value of the current field. This action is a more flexible version of the FilterFieldSelectedChars action.

Syntax

bool DeleteSelectedChars (strParam)

Parameters

strParam
A comma-delimited string that consists of the following parts:
Deletion string

The string that is to be deleted from the current field value. This string can consist of one character.

Smart parameters are supported. To specify a comma as part of the deletion string, use the smart parameter @CHR as shown in the example.

Segment position

The position within the current field value that is the beginning of the string segment in which deletion is to occur.

The default segment position is 1.

Instance maximum

The maximum number of deletion string instances that are to be deleted. To delete all instances, specify an asterisk (“*”).

The default instance maximum is 1.

Smart parameters are supported.

Returns

Always True.

Level

Field level.

Details

Example
DeleteSelectedChars("-, ,*")
"223-56-7669" becomes "223567669"

DeleteSelectedChars("-,5,*")
"223-86-7669" becomes "223-867669"

DeleteSelectedChars("@CHR(44),,2")
"Hello, Roger, Tom, and Jan" becomes "Hello Roger Tom, and Jan"

DeleteSelectedChars("er+@CHR(44),,*")
"Hello, Roger, Tom, and Jan" becomes "Hello, Rog Tom, and Jan"