Difference between Full BASIC and Microsoft BASIC

Supplied Functions

Corresponding functions for the built-in functions of Microsoft BASIC

ASC ASC(a$) ASC("x") CINT FIX HEX$ HEX$(n) INSTR INSTR(n,a$,b$) SPACE$ SPACE$(n) SPC SPC(n) STRING$ STRING$(n,a) STRING$(n,a$) STRING$(n,"x") | → ORD = ORD(a$(1:1)) = ORD("x") → ROUND → IP → BSTR$ = BSTR$(n,16) → POS = pos(a$,b$,n) → REPEAT$ = REPEAT$(" ",n) → REPEAT$ = REPEAT$(" ",n) → REPEAT$ = REPEAT$(CHR$(a),n) = REPEAT$(a$(1:1),n) = REPEAT$("x",n)

The above functions except SPC, STRING$(n,a) are defined as external functions in LIBRARY\MS.LIB.

INKEY$ → character input

          EXTERNAL FUNCTION INKEY$
             SET ECHO "OFF"
             LET S$=""
             CHARACTER INPUT NOWAIT: S$
             LET INKEY$=S$
          END FUNCTION

A sample for this lies in LIBRARY\INKEY$.BAS.
Since the INKEY$-function has no argument,
`DECLARE EXTERNAL FUNCTION INKEY$`
must be written in the program unit that invokes INKEY$.

---------------
Hexadecimal Constants
---------------
&H7F → BVAL("7F",16)
-------------
Substitution for MID$
-------------
MID$(a$,m,n)=s$ → LET a$(m:m+n-1)=s$