EndsWith

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > String functions >

EndsWith

 

Description

 

Check whether a string ends with some text

 

Syntax

 

n = EndsWith(sMainString, sMatchString [, Sensitivity])

 

Returns

 

Numeric

 

Parameters

 

Name

Type

Optional

Meaning

sMainString

String

No

Main string to check right part

sMatchString

Number

No

String to search for

Sensitivity

Number

Yes

Sensitivity flag.

If set to %TRUE, upper and lower case sensitivity will be on.

If set to %FALSE, there will be no difference between upper and lower case.

Default value is %TRUE

 

Remarks

 

Restrictions

 

See also

 

String Handling, MID$, LEFT$, RIGHT$, StartsWith,

 

Examples