@EndsWith

@ENDSWITH tests to see if the string ends with the specified suffix.

DTP Type:

@ENDSWITH can be assigned to a DTP of type boolean.

Syntax:

@ENDSWITH(String,Suffix)

Parameters:

Parameter Description
String Design-time prompt or text
Suffix Design-time prompt or text

Example:

[DTP_end]=@ENDSWITH([Mbr1],[String1])

Where:

  • [Mbr1] is a DTP of type member that is a checked prompt.

  • String1 is a DTP of type string that is a checked prompt.

Assume that the following values are input:

  • [Mbr1]: "Joe Smith"

  • [String1]: "Smith"

In this example, [DTP_end] returns "true."