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
vidnum$
- returns the string representation of a rounded numeric
Hex2Dec
DecToHex
CNumByte
- converts number to bytes sequence
CByteNum
- converts bytes sequence to number
SecTime - return  number of seconds from 0:00
DayDate -  return  number of days from 0 year.
TimeString - convert number of seconds from 0:00 to hh:mm:ss fofmat
 

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
QSHFileOperation
-copy, rename, delete and move files and folders with wildcard and recursivly
-----------------------
rqSub.zip- is needed for * function
*GetPATH-Get  file path (without file name)
*GetFILENAME-Get file name (without path)
*GetFILEEXT-Get file extension (like ".exe", ".html"  etc.)
*GetFILENAMENOEXT-Get file name without extension
*GetFULLPATHNOEXT-Get full path without file extension
*SetPATH-Set file path (with the same file name)
*SetFILENAME-Set file name (with the same file path)                       
*SetFILEEXT-Set file extension (with the same file path and name)  

C_Style
Returns "slashed" path from a "backslashed" one
io2Rnd - convert text file with single value strings to binary
Rnd2io  - convert  binary file with single type value data to  text file with single type value strings
FileCopy-Copy FileSrc$ to FileDst$
KillFiles-Kill files in FileName$  with mask
*FileSize - returns size of file
SaveString -
save string in file
*LoadString-loads text file into string
*loadfromfile-loads text file into string array
 


Directories
CHDIR
-Changes the current directory.
CHDRIVE-not supported
curdir$
-Returns the current directory
DIREXISTS
dir$
-Returns files in the current directory
MKDIR
-Makes a folder on the local file system.
QDIRTREE
RMDIR
-Removes a folder from the file system.
Custom -Files.inc
MKSubDir-
make directory with full subdir structure
SubDirCopy-
Copy directory with full subdir structure and files
fSubDirCopy-the same, but return result of operation
DirCopy
KillSubDir
-Kill files by mask$ in all subdirs
SYSDIR
Retrieves windows shell directories
HOMEDIR
The folder where the application is

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 -
Conversion.inc
Add0Before
- A function that pre-padd string with 0's to  required Length
ByteReOrder
- A function that reorder bytes in string.
LIKE - pattern matching routine
TimeString
- return time in Houre, Min, Sec.


http://www.wildgardenseed.com/RQDP/rqString.bi
is needed for
* functions

ASC
BIN$
CHR$
-Returns the ascii character of the byte
COMMAND$-Returns command line parameters used to call the program.
CONVBASE$ - Bin to Hex, ets.
DATE$
- MM-DD-YYYY
*DELETE$-deletes part of a string.
ENVIRON$
-Returns the value of a system environment variable
*rqFIELD$-returns a field separated by deliminators
FORMAT$
HEX$
INKEY$
-Returns the last key pushed on the keyboard.
*INSERT$-returns a string with an inserted substring
INSTR-
returns the index position of the find-string
LCASE$-
returns a string expression with all letters lower-case
LEFT$
-returns 'n' amount of characters starting from the left
LEN
-Returns the size of a variable in bytes.
LTRIM$
-Ltrim (left trim) trims the leading white space.
MID$ (function)
-returns a section of a string starting from 'start' for 'length' characters.
MID$ (statement)-Allows part of a string to be replaced.
MKD$-Encodes a double-precision floating point number to a string.
MKI$
-Encodes a 32bit integer number to a string
MKL$
-Encodes a long number to a string.
MKS$
-Encodes a single-precision floating point number to a string.
OCT$
-Returns a number in octal format (base 8) in a string.
*REPLACE$-replaces a portion of a string with another
*REPLACESUBSTR$-replaces all a substring occurrences with another string.
*REVERSE$-reverses (or mirrors) a string.
RIGHT$
-returns 'n' amount of characters starting from the right of 'text$' string.
*RINSTR-searches in string right to left
RTRIM$
-Rtrim (right trim) trims the trailing white space from string.
SPACE$
-Returns a string full of spaces
SPC
-Returns a string full of spaces
STRING$
-String repeats a character (given by the character code number, or a string) 'n' times
STR$
-Converts a number into a string.
STRF$
*TALLY-counts the number of occurrences
TIME$
-Returns the current time in the format hh:mm:ss.
trim$
-delete left and right spaces
UCASE$
-returns a string expression with all letters upper-case.

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