ADDRESS
ARRAY
Console
Date and Time
Device
-
not supported
Display graphic images
(Gfx lib)
Directories
DLL
Files and directories
Loops
Manage memory
Function
Mouse
Operators
PRINTER
Procedures, Functions
RESOURCE
SORTING
Strings
fixed-length strings
Types
Variables
VARIANT
|
ADDRESS VARPTR-Returns the memory address of a variable. VARPTR$ - not supported |
|
ARRAY-Arrays
are ALWAYS dynamic; no sharing between processes.!!! CLEAR-Resets all values in an array to what you want (usually 0 is useful). ERASE-Erases dynamic arrays from memory, or clears all elements in a static array INITARRAY DEF... DIM LBOUND MEMSET OPTION BASE-Sets the default lower bound of an array subscript. preserve-data in array is not reset but is preserved QUICKSORT REDIM static UBOUND Array functions (func_array.inc)
|
|
CONVERSION BIN$ RGB CEIL CINT-Converts any number to an integer by removing the fractional part. CLNG CONVBASE$ FIX FLOOR FRAC HEX$ INT - Convert NumericExpression to a 32-bit INTEGER, truncating decimals Custom -
Conversion.inc |
|
CONSOLE CLS-Clears the console screen. color-Sets the display foreground / background color CSRLIN-Returns the current line position LOCATE-Sets the console cursor multikey-Function to detect multiple keypresses. GET$ INKEY$-Returns the last key pushed on the keyboard. INPUT PCOPY-Copies one video page to another. POS-Returns the horizontal (left-right) position of the text cursor. PRINT-Displays text on the screen PRINT USING SETCONSOLETITLE-not supported TAB-set the column in a print expression VIEW (Text)-Sets the boundaries of the console screen text area. width-Sets the console screen size in windows. WINDOW-new view coordinates mapping for current viewport WRITE (Screen I/O) |
|
Date and Time DATE$-Used to return the current date, or set a new date for the system. setdate- set the date TIMER-Returns the number of seconds past midnight. TIME$-Returns the current time in the format hh:mm:ss. |
|
input/output INP-not supported INPW-not supported |
|
Display graphic images BLOAD - Statement to load a block of binary (graphic) data from a file BSAVE - Statement to save a block of binary (graphic) data into a file CIRCLE-draw circles, ellipses or arcs. color-Sets the display foreground / background color DRAW-sequenced pixel plotting. flip - Alias for PCOPY and SCREENCOPY GET (Graphics) - save a block of pixels data into an array. getmouse - Statement to retrieve mouse position and buttons status INP - VGA port input emulation. LINE (Graphics)-draws a straight line or a box multikey-Function to detect multiple keypresses. OUT-VGA port output emulation. PAINT-fill an area with a color PALETTE-customize current palette. PCOPY-Copies one video page to another. PMAP-map coordinates between view and physical mapping. POINT-read a pixel color or coordinate PRESET-PRESET works exactly like PSET PSET-plot a single pixel. PUT (Graphics)-draw a block of pixels previously saved by GET rgb-compute valid color value for hi/truecolor modes screen (graphics)- set current gfx mode. screencopy-copy the contents of a graphical page into another graphical page screeninfo- information about current video mode screenlock- lock work page framebuffer. screenptr-returns a pointer to the current work page framebuffer memory screenset-set current work and visible pages. screenunlock-unlock work page framebuffer. VIEW (Graphics)-new physical coordinates mapping WAIT-DOS port data waiting emulation. WINDOW-new view coordinates mapping for current viewport Windowtitle- set the program window title. |
|
DLL LIB - How to call a DLL in RapidQ DECLARE- declaration of function or sub Export -dll export |
|
Files ACCESS - used with the open statement. APPEND - opens the file with the APPEND file mode BINARY - opens the file with the binary file mode BLOAD - Statement to load a block of binary data from a file BSAVE - Statement to save a block of binary data into a file CHDIR-Changes the current directory. CLOSE-Closes one file or closes all files curdir$-Returns the current directory/folder. dir$-Returns files in the current directory/folder. EOF-EOF stands for end-of-file FREEFILE - Returns the next open file slot GET (File I/O) - Reads data from a file in binary mode INPUT # input (file mode) Introduction to streams FILEEXISTS KILL - deletes a file from disk. LINE INPUT # loc - Returns the position with an open file (in binary mode only). LOCK-Lock will restrict access to a file LOF-Returns the length of file of an open file given the file slot. LSET- left justifies text into the string buffer MKDIR-Makes a folder on the local file system. NAME-Renames a file originally called oldname to newname. OPEN-Opens a file on the system for reading/writing OUTPUT-A file mode PRINT # PUT (File I/O)-Writes data to a file in binary mode. RANDOM-file mode RESET-Closes all disk files. RMDIR-Removes a folder from the file system. RSET-right justifies text into the string buffer SEEK (return)-Returns the position (in bytes) SEEK (set)-Sets the position (in bytes) SYSTEM-Closes all open files and returns to the system. UNLOCK-unlock access to a previously locked file WRITE (File I/O) QFILESTREAM QFILELISTBOX Custom file functions
Directories |
|
Functions & Sub SUBI, FUNCTIONI, and DLLs Free BasicSub & Functions PARAMSTR$ PARAMSTRCOUNT |
|
Loops Loops continue - Re-enters a code block such as a do...loop, for...next, or a while...wend block DO...LOOP-Repeats a block of statements until/while a contition is met. FOR...NEXT-Repeats execution of a code block a number of times EXIT-Leaves a code block such as a sub, function, do...loop, while...wend, or a for...next block. UNTIL- is used with the do...loop structure. WHILE...WEND- repeats the statements, while the condition is true. FOR .. NEXT Loop EXIT FOR WHILE .. WEND EXIT WHILE DO .. LOOP EXIT DO |
|
Math Functions Arithmetic operators ABS-returns the positive number of the number given ACOS ASIN ATAN ATN COS DEC-Decrements numeric variable by one, or by the amount specified. EXP-Returns e to the power of a number INC-not supported IMP - A bitwise operator which is the same as (not a) or b INV LOG-returns the natural logarithm of a numeric expression MOD-Returns the remainder of a divided by b (modulus) RANDOMIZE RND ROUND SGN shl-shifts all bits in the integer to the left shr-shifts all bits in the integer to the right SIN SQR-Returns the square root of the number TAN -- custom math func fbmath.zip rq-math.inc ACOSH ACOT ACOTH ACOSEC ACOSECH ADDZ ASINH ASEC ASECH ATANH CONJZ COSEC COSECH COSH COSZ COSHZ COT COTH DEG2RAD DIVZ EVEN EXPZ FAC GCD INVZ LOG10 LOG10Z LOGAZ LOGZ MAGZ MULZ NORZ ODD POLZ POWZ RAD2DEG RQE RQPI SEC SECH SINH SINZ SINHZ SQRZ SUBZ TANH TANZ FindMax also see CONVERSION |
|
Memory allocate - Allocates as much memory as you want (in bytes) and returns a pointer to the beginning deallocate - Deallocates memory allocated with allocate $DYNAMIC ERASE-Erases dynamic arrays from memory, or clears all elements in a static array FRE - Returns the free memory (ram) avaliable in bytes. MEMCMP-not supported MEMCPY-not supported MEMSET-not supported PEEK-return the value in memory given by a memory address. POKE- changes the value in memory given by a memory address. reallocate SADD-Returns the memory offset of the string data in the string variable screenptr-returns a pointer to the current work page framebuffer memory $static VARPTR-Returns the memory address of a variable. |
|
Mouse MOUSEX, MOUSEY getmouse - Statement to retrieve mouse position and buttons status |
|
POINTER BIND-not supported BIND-not supported CALLFUNC-not supported CALLFUNC-not supported pointer |
|
PRINTER LPRINT LFLUSH PRINTER using |
| Procedures |
|
RESOURCE EXTRACTRESOURCE RESOURCE RESOURCECOUNT |
|
SORTING QUICKSORT |
|
Strings
Custom functions -
http://www.wildgardenseed.com/RQDP/rqString.bi |
|
SYSTEM BEEP-tells the system to sound a beep noise environ ENVIRON$-Returns the value of a system environment variable SETENVIRON-Modifies system environment variables. shell-Shell sends commands to the system command prompt sleep-sleep will wait 'time' milliseconds. run-executes a specified program without blocking. stop-Ends the execution of the program and returns to the system. SYSTEM-Closes all open files and returns to the system. custom Control.inc - Windows control panel library for Rapid-Q |
|
Types objects variants udts arrays INITARRAY DIM Array Saving/Loading UDTs and Arrays DEF |
| Set traps for events and errors |
|
Operators Arithmetic operators Relational Logical AND |
|
Variables Variables and Assignments BYTE WORD DWORD SHORT (%) LONG (&) or INTEGER SINGLE (!) DOUBLE (#) STRING ($) |
| VARIANT |