Publication: LISTing Newsletter
Pub Details: LISTing Newsletter Sample Issue
Date: Sample Issue
Pages: P3 (PDF 6)
Marty J., has been entering some Microsoft BASIC programs into his 2068. He offers the following sample correlation for STRING handling.
MISCROSOFT RESULTS SINCLAIR BASIC MID$(A$,3,2,) LL A$(3 to 4) LEFT$(A$,2) HE A$(to 2) RIGHT$(A$,2) LO A$(LEN(A$)-1 To)
MICROSOFT BASIC
10 A$="HELLO"
20 LPRINT MID$ (A$,3,2)
30 LPRINT LEFT$(A$,2)
40 LPRINT RIGHT$(A$,2)
LL
HE
LO
(IBM PC)
SINCLAIR BASIC
10 LET a$="hello"
20 PRINT a$( TO 2)
30 PRINT a$(3 TO 4)
40 PRINT a$(LEN a$-1 TO )
he
LL
LO
NOTE: Lines 20 & 30 are reversed.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.