Navigation:  thinBasic Modules > Core > String handling >

LeftAndRight$

Previous pageReturn to chapter overviewNext page

 

Description

 

Return a portion of a string taking its the left and right part.

 

Syntax

 

s = LeftAndRight$(StringExpression, NumberOfBytesFromLeft, NumberOfBytesFromRight)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

StringExpression

String

No

Original string from which portion will be extracted

NumberOfBytesFromLeft

Number

No

Number of bytes to take from left side of the string

NumberOfBytesFromRight

Number

No

Number of bytes to take from right side of the string

 

Remarks

 

Restrictions

 

See also

 

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

 

Examples