AT&T 6300 Programmer's Manual page 320

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

LEFT$
Function
Syntax
string
length
Remarks
Example
7-164
Returns a substring extracting the leftmost
number of characters as specified by the
"length" parameter.
LEFT$( string , length )
is a string expression whose value is the string from which
the substring is to be returned
is an integer expression from 0 to 255 which specifies the
number of the characters to be returned.
If "length" is greater than LEN(string), the
entire original string is returned. If "length"
=
0, the null string (length zero) is returned.
Refer to the MID$ and RIGHT$ functions in
this chapter.
Ok
10 AS
=
uGWBASIC"
20
BS
=
LEFTS(AS,6)
30 PRINT BS
GW-BAS
Ok

Advertisement

Table of Contents
loading

Table of Contents