Navigation:  ThinBASIC Language > thinBasic Functions > String functions >

LEFTW$

Previous pageReturn to chapter overviewNext page

 

Description

 

Return the left-most n character of a string.

 

Syntax

 

s = LEFTW$(StringExpression, nBytes)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

StringExpression

String

No

Original string from which portion will be extracted

nBytes

Numeric

No

Number of bytes to return

 

Remarks

 

Restrictions

 

See also

 

String Handling, RIGHT$, MID$

 

Examples