Table of Contents

LEFT$

Returns a string containing the given number of left-most characters from another given string

Implemented by: altair8K, Applesoft, CBM, atxl, msatari, level2, trscolor, colormc, BBC, GWBASIC, MSX, bwbasic, bw32, ABasiC, QBasic, VBDOS, FreeBASIC, Gambas, minibasicmm, minibasicjs

With variations:

Also written as:

Usage

From Usborne Publishing's Introduction to Computer Programming, 1982

The first argument of LEFT$ is the original string; the second is the number of characters to copy, from its left-most position (usually its origin, I don't know yet how right-to-left languages were treated).

nw$ = LEFT$ (or$, 4)

Variations

Examples

Comments

Similar keywords

In other languages...

References