![]() |
maxreason@gmail.com | max reason |
XBasic web-pages
XBasic
overview - features, capabilities, screenshots.
XBasic newsbits - the latest news and views of XBasic.
XBasic freeware - download & installation instructions.
XBasic questions - frequently asked questions -- FAQs.
XBasic quick-start - begin programming XBasic quickly.
QuickBasic to XBasic - translate QuickBasic to XBasic.
QuickBasic keywords - QuickBasic to XBasic keywords.
XBasic documentation - complete HTML
documentation online.
XBasic keywords/operators/scopes/types - language reference.
XBasic projects - enhance & extend applications &
documentation.
XBasic e-links - other web-sites with XBasic samples and
information.
XBasic forum - mail-list forum for all
XBasic programmers - questions, answers, advice, samples, etc.
comments, suggestions, corrections
QuickBasic keywords to XBasic equivalent
The following table lists every QuickBasic keyword and gives the closest XBasic equivalent for each. Unfortunately this table is at an early state of development. This table is a valuable reference tool for converting QuickBasic programs to XBasic, and for helping QuickBasic programmers learn XBasic.
Because this table is such a valuable resource, everyone is encouraged to help finish and enhance it.
QuickBasic | XBasic | XBasic comment | |
ABS() | ABS() | ||
ACCESS | xx | ||
ALIAS | xx | ||
AND | AND | ||
ANY | xx | ||
APPEND | xx | ||
AS | xx | ||
ASC() | ASC() | ||
ATN() | ATAN() | ||
BEEP | xx | ||
BINARY | xx | ||
BLOAD | XstBinLoad(), XstLoadString() | ||
BSAVE | XstBinSave(), XstSaveString() | ||
BYVAL | xx | default | |
CALL | xx | ||
CALLS | xx | ||
CASE | CASE | enhanced | |
CCUR() | GIANT() | enhanced | |
CDBL() | DOUBLE() | enhanced | |
CDECL | CFUNCTION | enhanced | |
CHAIN | xx | ||
CHDIR | XstChangeDirectory() | enhanced | |
CHDRIVE | XstChangeDirectory() | enhanced | |
CHR$() | xx | ||
CINT() | SSHORT() | enhanced | |
CIRCLE | xx | see GraphicsDesigner | |
CLEAR | xx | ||
CLNG() | SLONG() | enhanced | |
CLOSE | CLOSE() | ||
CLS | xx | see GraphicsDesigner | |
COLOR | xx | see GraphicsDesigner | |
COM | xx | ||
COMMAND$ | XstGetCommandLineArguments() | ||
COMMON | xx | ||
CONST | $$NAME = | ||
COS() | COS() | ||
CSNG() | SINGLE() | enhanced | |
CSRLIN() | xx | ||
CURDIR$() | xx | ||
CURRENCY | GIANT | ||
CVC() | GIANT() | enhanced | |
CVD() | DOUBLE() | enhanced | |
CVI() | SSHORT() | enhanced | |
CVL() | SLONG() | enhanced | |
CVS() | SINGLE() | enhanced | |
DATA | xx | ||
DATE$() | XstGetDateAndTime() | enhanced | |
DECLARE | DECLARE | enhanced | |
DEF | xx | ||
DEFCUR | GIANT | ||
DEFDBL | DOUBLE | ||
DEFINT | SSHORT | ||
DEFLNG | SLONG | ||
DEFSNG | SINGLE | ||
DEFSTR | STRING | ||
DELETE | xx | ||
DIM | DIM | enhanced | |
DIR$() | xx | see Xst library | |
DO | DO, DO WHILE, DO UNTIL | enhanced | |
DOUBLE | DOUBLE | enhanced | |
DRAW | xx | see GraphicsDesigner | |
ELSE | ELSE | ||
ELSEIF | ELSE IF, SELECT CASE TRUE | ||
END | END | enhanced | |
ENDIF | ENDIF, END IF | ||
ENVIRON | XstGetEnvironmentVariable() | ||
ENVIRON$() | XstGetEnvironmentVariables() | ||
EOF() | EOF() | ||
EQV | xx | ||
ERASE | xx | ||
ERDEV() | xx | ||
ERDEV$() | xx | ||
ERL() | xx | ||
ERR() | ERROR() | ||
ERROR | xx | ||
EVENT | xx | ||
EXIT | EXIT | enhanced | |
EXP() | EXP() | ||
FIELD | xx | ||
FILEATTR() | XstGetFilesAndAttributes() | others too | |
FILES | XstGetFiles() | others too | |
FIX() | FIX() | enhanced | |
FOR | FOR | ||
FRE() | xx | ||
FREEFILE() | xx | ||
FUNCTION | FUNCTION, CFUNCTION | enhanced | |
GET | READ | enhanced | |
GOSUB | GOSUB, GOSUB @var, GOSUB @array[] | enhanced | |
GOTO | GOTO, GOTO @var, GOTO @array[] | enhanced | |
HEX$() | HEX$(), HEXX$() | enhanced | |
IF | IF, IFT, IFZ, IFF | enhanced | |
IMP | xx | ||
INKEY$() | xx | ||
INP() | xx | ||
INPUT | INLINE$() | ||
INPUT$() | INLINE$() | ||
INSTR() | INSTR(), INSTRI(), RINSTR(), RINSTRI$() | ||
INT() | INT() | enhanced | |
INTEGER | SSHORT | ||
IOCTL() | xx | ||
IS | xx | ||
KILL | xx | ||
LBOUND() | xx | always zero | |
LCASE$() | LCASE$() | ||
LEFT$() | LEFT$() | ||
LEN() | LEN() | ||
LET | xx | ||
LINE | xx | see GraphicsDesigner | |
LIST | xx | ||
LOC() | xx | ||
LOCAL | AUTO, AUTOX, STATIC | enhanced | |
LOCATE | xx | ||
LOCK | xx | ||
LOF() | LOF() | ||
LOG() | LOG() | ||
LONG | SLONG | ||
LOOP | LOOP | ||
LPOS() | xx | ||
LPRINT | xx | ||
LSET | xx | ||
LTRIM$() | LTRIM$() | ||
MID$() | MID$(), STUFF$() | ||
MKC$() | STRING$() | ||
MKD$() | STRING$() | ||
MKI$() | STRING$() | ||
MKL$() | STRING$() | ||
MKS$() | STRING$() | ||
MKDIR | XstMakeDirectory() | see Xst function library | |
MOD | MOD | ||
NAME | xx | ||
NEXT | NEXT | ||
NOT | NOT | ||
OCT$() | OCT$(), OCTO$() | ||
OFF | xx | ||
ON | GOTO @var, GOSUB @var | ||
OPEN | OPEN | ||
OPTION | xx | ||
OR | OR | ||
OUT | xx | ||
OUTPUT | xx | ||
PAINT | xx | see GraphicsDesigner | |
PALETTE | xx | see GraphicsDesigner | |
PCOPY | xx | ||
PEEK() | UBYTEAT() | other types too | |
PMAP() | xx | ||
POINT() | xx | see GraphicsDesigner | |
POKE | UBYTEAT() | other types too | |
POS | xx | ||
PRESET | xx | ||
PSET | xx | ||
RANDOM | xx | ||
RANDOMIZE | xx | ||
READ | READ | similar | |
REDIM | REDIM | ||
REM | xx | ||
RESET | xx | ||
RESTORE | xx | ||
RESUME | xx | ||
RETURN | END SUB | ||
RIGHT$() | RIGHT$() | ||
RMDIR | xx | see Xst function library | |
RND() | xx | ||
RSET | xx | ||
RTRIM$() | RTRIM$() | ||
RUN | xx | ||
SADD() | & | address operator | |
SCREEN() | xx | ||
SEEK() | SEEK() | ||
SEG | xx | ||
SELECT | SELECT | enhanced | |
SETMEM() | xx | ||
SGN() | SGN() | and SIGN() | |
SHARED | SHARED | enhanced | |
SHELL | SHELL() | ||
SIGNAL() | XstCauseException() | ||
SIN() | SIN() | ||
SINGLE | SINGLE | ||
SLEEP | XstSleep() | ||
SOUND | xx | ||
SPACE$() | SPACE$() | ||
SPC() | xx | ||
SQR() | SQRT() | ||
SSEG() | xx | ||
SSEGADD() | xx | ||
STACK() | xx | ||
STATIC | STATIC | similar | |
STEP | STEP | ||
STICK() | xx | ||
STOP | STOP | ||
STR$() | STR$(), STRING$(), SIGNED$() | ||
STRING | STRING | ||
STRING$() | CHR$() | ||
SUB | FUNCTION | ||
SWAP | SWAP | enhanced | |
SYSTEM | SHELL() | ||
TAB() | TAB() | ||
TAN() | TAN() | ||
THEN | THEN | ||
TIME$() | XstGetDateAndTime() | ||
TIMER() | XstStartTimer() | more timer functions | |
TO | TO | ||
TYPE | TYPE | ||
UBOUND() | UBOUND() | ||
UCASE$() | UCASE$() | ||
UEVENT | xx | ||
UNLOCK | xx | ||
UNTIL | UNTIL | ||
UPDATE | xx | ||
USING | FORMAT$() | ||
VAL() | DOUBLE() | other types too | |
VARPTR() | & | address operator | |
VARPTR$() | xx | ||
VIEW | xx | see GraphicsDesigner | |
WAIT | xx | ||
WEND | xx | ||
WHILE | DO WHILE | ||
WIDTH | xx | ||
WINDOW | xx | see GraphicsDesigner | |
WRITE | WRITE | similar | |
XOR | XOR | more types | |
xx | xx | ||
xx | xx | ||
xx | xx |