| HotBasic Compiler Help
HOME CONTACT APPENDIX CREDITS Updated: Aug 29, 2009 Update your Manual local copy with HotIDE::Tools:: Update Help Files Artwork by Don HotBasic Doctor HotBasic Tips Common Mistakes | Compiler Getting Started Documentation Switches Error Levels and Run-Time Errors Directives $APPTYPE $ARRAYPOS $DEFINE $DUPARGERR $DUPPROCERR $ELSE $ENDIF $EQUALPREC $ESCAPECHARS $GUIOBJ $IFDEF $IFNDEF $INCLUDE $MACRO OFF ON $OPTIMIZE $OPTION $RESOURCE $SYMBOLTABLE $TYPECHECK $UNDEF $UPPERCASE $X11 $XPSTYLE Statements Variables and Types BITMAP BUTTON BYTE CANVAS CHECKBOX COLORDIALOG COMBOBOX COMPORT DATE DATETIME DOUBLE DWORD EDIT FILE FILELISTBOX FINDDIALOG FONT FONTDIALOG FORM FUNCTION GAUGE GRID GROUPBOX HEADER IMAGE INT64 INTEGER LABEL LIST LISTBOX LISTVIEW LONG MAINMENU MEMORY MENUITEM NODE OPENDIALOG PAGEDIALOG PANEL POPUPMENU PRINTDIALOG RADIOBUTTON REAL10 RECT REGISTRY REPLACEDIALOG RICHEDIT RICHEDIT2 SAVEDIALOG SCROLLBAR SHORT SINGLE SOCKET SPLASH SQLDATA SQLITE STATUSBAR STRING SUB SYSTRAY TABCONTROL TIMER TOOLBAR TRACKBAR TREEVIEW UPDOWN VARIANT WORD Dimension AS CONST CREATE DEFBYTE DEFDBL DEFDWORD DEFINT DEFINT64 DEFLNG DEFREAL10 DEFSHORT DEFSNG DEFSTR DEFWORD DIM EXTENDS OBJECT REDIM STATIC TO TYPE Arrays Console CLS COLOR FREECONSOLE INPUT LOCATE PAUSE PRINT SETCONSOLEMODE SETCONSOLETITLE SHOWCONSOLE Loops and Code Blocks CASE DO ELSE ELSEIF END EXIT FOR IF IS LOOP NEXT SELECT STEP THEN TO UNTIL USE WEND WHILE Procedures BYREF BYVAL CALL CALLFUNC CDECL DECLARE END EXIT FUNCTION GOSUB LIB RESULT RETURN RETVAL STD SUB Directories and Files CHDIR COPY DELETE EXTRACTRESOURCE KILL LIBRARYINST MKDIR MOVE RENAME RMDIR UNLOADLIBRARY Data DATA READ RESTORE Sound BEEP PLAYWAV SOUND Miscellaneous BYTESWAP DEC DOEVENTS END ENVIRON FREECONSOLE GOTO IADD IDIV IMOD IMUL INC INITARRAY ISHL ISHR ISUB LPRINT NOTHING OUT OUTW POPUP RANDOMIZE REDIM RUN SHELL SHELL1 SHOWCONSOLE SHOWMESSAGE SLEEP SWAP THIS WAITTHREAD WITH Advanced Techniques ARRAYREF ARRAYREF$ ASM BYREF BYREF$ CALLFUNC EXTERNAL FUNCCALL MEMCPY MEMSET POP PUSH REDIMEX RETVAL RUNONCE WINDOW Threads BEGIN CPUCOUNT CREATETHREAD END EXIT LOCKOBJ STACK STACKALLOC STACKFREE THREAD UNLOCKOBJ WAITOBJ WAITTHREAD String Functions [] ANSI$ ARRAYREF$ BIN$ BYREF$ CHR$ COMMA COMMAND$ COMMANDLINE$ CRLF CURDIR$ DATE$ DELETE$ DIR$ ENVIRON$ FIELD$ GET$ HEX$ IIF$ INKEY$ INPUT$ INSERT$ LCASE$ LEFT$ LTRIM$ MID$ NULL PATH$ QUOTE REPLACE$ REPLACESUBSTR$ REVERSE$ RIGHT$ RTRIM$ SPACE SPACE$ STR$ STRING$ TAB TIME$ TRIM$ UCASE$ VARIANTREF$ VARPTR$ WIDE$ WINDIR$ WINDOW Numeric Functions @ - ABS ACOS ARRAYREF ASC ASIN ATAN ATN BOOL BOOLEAN BYREF BYTESWAP CALLBACK CEIL CINT CLNG CODEPTR COMMANDCOUNT COS CPUCOUNT CREATETHREAD CSRLIN DIREXISTS EAX EXP FALSE FILEEXISTS FIX FLOOR FRAC GETLASTERROR HCOS HEX2DW HIWORD HSIN HTAN IADD IDIV IIF IMOD IMUL INP INPW INSTR INT ISCONSOLE ISHL ISHR ISUB LBOUND LEN LN LNTWO LOG LOG2E LOG2TEN LOGTWO LOWORD MEMCMP MESSAGEBOX NEG NOT OBJPTR ONE PI POS POSTMESSAGE RESOURCE RESOURCECOUNT RETFUNC RGB RND ROUND SCREEN SGN SENDMESSAGE SHELL SHELL1 SIN SIZEOF SQR TALLY TAN TIME TIMER TRUE UBOUND VAL VARIANTREF VARPTR VARTYPE WAITTHREAD WINDOW ZERO Objects APPLICATION with Debugger DebugMessage ErrorLevel (get/set) OnExit and OnFPUerror BITMAP CLIPBOARD COMPORT CONSOLE with keyboard and mouse events, cursor control CUSTOM Objects With custom properties, methods and functions DATE Year Month DayOfWeek Day Hour Minute Second Milliseconds Flags Locale Error (numeric) DateFormat TimeFormat (string) METHODS: LoadInt64 SaveInt64 Update UpdateUTC (see hotdate.bas in HotTrial). The string argument for DateFormat and TimeFormat is detailed for the GetDateFormant and GetTimeFormat API's. DIALOGS ColorDialog FindDialog ReplaceDialog PageDialog PrintDialog FontDialog OpenDialog SaveDialog FILE FILEREC Attr Creation FileTime LastChange LastRead Size (numeric) Date DateLastRead DateLastWrite FileName ShortName Time TimeLastRead TimeLastWrite (string) (R only). Size, Creation, LastRead and LastChange have 64-bit precision for big files. Access these values after use of DIREXISTS, FILEEXISTS or DIR$ FONT FORM Objects BUTTON CANVAS CHECKBOX COMBOBOX DATETIME EDIT FILELISTBOX GAUGE GRID GROUPBOX HEADER IMAGE LABEL LISTBOX LISTVIEW PANEL RADIOBUTTON RICHEDIT RICHEDIT2 SCROLLBAR SPLASH STATUSBAR TABCONTROL TOOLBAR TRACKBAR TREEVIEW UPDOWN Properties Methods Events By Keyword FPU HotBasic exclusive LIST MEMORY Streams with Encrypt and Decrypt methods MENU MainMenu MenuItem PopUpMenu MOUSE X Y (R only) cursor position NODE Data Next Prev Parent Children (RW). NODE arrays can be used to make "trees" or relational data bases PRINTER PROPERTIES RECT Left Top Right Bottom (RW) REGISTRY SCREEN ClientHeight ClientWidth MouseButtons MouseSwap Height Width (R only) SOCKET SQLDATA access data sources (ODBC) SQLITE requires SQLite.dll STRING All MEMORY and LIST properties and methods apply to STRING objects SYSTRAY TIMER VARIANT Type VERSION Major Minor Build Platform (numeric) and Info (string) (R only) VERSION.Platform = 0 (3.1); 1 (9x); 2 (NT,2K,XP). Operators and Precedence Order: higher to lower (& for VB strings) ^ * / \ SHL SHR MOD INV + - [relational] NOT AND OR XOR Appendix ASSEMBLER Inserts VARIANT Qualified Type RECURSIVE Procedure Calls Credits Thanks to Microsoft Corporation for the wonderful public service to the computing world by providing several utilities free, used to "put the pieces together" in HotBasic compilation. Thanks to Raymond Filiatreault for permission to use two of his FPU routines: conversion of string to FPU value and FPU value to string. Thanks to Don for permission to use his "Hot! Basic" artwork. Thanks to D. Richard Hipp for writing sqlite.dll used by the HotBasic SQLITE object. Copyright © 2003-2009 James J Keene PhD HotBasic™ is a trademark of James J Keene Original Publication: May 29, 2003