Text.EndsWith

From Xojo Documentation

Method

Text.EndsWith(other As Text, Optional options As Integer = 0, Optional locale As Xojo.Core.Locale = Nil) As Boolean

Supported for all project types and targets.

Determines if the text ends with other text. Returns True if the text ends with other, False if it does not.

Parameters

Value Description
other The text to compare with the original text.
options (Optional) Comparison options. Use constant CompareCaseSensitive for case-sensitive comparisons.
locale Desc

Notes

By default this performs a case-insensitive comparison. To do a case-sensitive comparison, supply the CompareCaseSensitive constant to the compareOptions parameter.

By default comparisons are done in an invariant locale (i.e. not dependent on the user's preferences). The locale parameter can be used to specify an explicit locale to do comparisons in.

Exceptions