VTech Precomputer Power Pad Plus User Manual

Page 59

Advertising
background image

55

Example:

10

A$=“ABCDE”

20

B$=LEFT$ (A$+“FGH”,6)

30

PRINT B$

RUN

ABCDEF

RIGHT$ (A$,N)

This will return a substring but starting from the Nth character from the end and running
to the last one - the right-most character in the string A$.

Example:

10

A$=“WHY”

20

B$=RIGHT$(A$+“ME”,4)

30

PRINT B$

RUN

HYME

MID$ (A$,M,N)

This function returns a substring of the string A$ starting from the Mth character with a
length of N characters.

Example:

10

A$=“ABCDEFGH”

20

B$=MID$(A$,2,3)

30

PRINT B$

RUN

BCD

Advertising