Navigation:  thinBasic Modules > Core > String handling >

StartsWith

Previous pageReturn to chapter overviewNext page

 

Description

 

Check whether a string starts with some text

 

Syntax

 

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

 

Returns

 

Numeric

 

Parameters

 

Name

Type

Optional

Meaning

sMainString

String

No

Main string to check left 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$, EndsWith,

 

Examples