LeftAndRight$

<< Click to Display Table of Contents >>

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

LeftAndRight$

 

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