ABS ABS(NumericExpression) Return absolute value of number ACOS ACOS(NumericExpression) Returns arccosine of NumericExpression ASC ASC(Char$) Returns the ASCII key value of Char$ ASIN ASIN(NumericExpression) Returns arcsine of NumericExpression ATN ATN(NumericExpression) Returns arctangent of NumericExpression BIN$ BIN$(Integer-Number) Returns the binary representation of the Number (must be a positive integer). BIND BIND Num TO MyFunc BIND a function pointer CALLBACK/CODEPTR CODEPTR(MySUB) Returns the absolute address of the SUB/FUNCTION CALLFUNC CALLFUNC(Num, Param1, Param2, ...) Call function pointer CEIL CEIL(NumericExpression) Rounds a numeric expression up towards positive infinity. CHDIR CHDIR Path$ Change directory CHR$ CHR$(Byte) Returns character corresponding to the ascii key value CINT CINT(NumericExpression) Implemented for compatibility reasons. Use ROUND instead. CLNG CLNG(NumericExpression) Implemented for compatibility reasons. Use ROUND instead. CONST CONST Variable Expression Assigns Variable a constant value CONVBASE$ CONVBASE$(Str$, FromBase, ToBase) Returns the representation Str$ FromBase to ToBase representation. COS COS(NumericExpression) Returns cosine of an angle given in radians DATA DATA constant|EXECUTE(...) [, constant|EXECUTE(...), ...] Stores data for easy retrieval, use READ to read the data. DATE$ DATE$ Returns the current Date in MM-DD-YYYY format. DEC DEC(Variable [, DecVal]) Decrements variable by 1 unless otherwise specified DEF... DEF(...) Variable See details for more information on this statement DELETE$ DELETE$(S$, Index, Count) Deletes Count number of characters from S$ starting at Index DIM DIM Variable AS DataType Creates variable of type DataType DIR$ DIR$[(FileSpec$, Attributes%)] Returns the next file of FileSpec$ DIREXISTS DIREXISTS(Path$) Returns 0 if directory does not exist, non-zero otherwise DOEVENTS DOEVENTS Polls events, useful when you're in a deep/big loop END END Terminates program EXP EXP(NumericExpression) Calculates the exponential function (e raised to the power of NumericExpression) ENVIRON ENVIRON(StringExpression) Set environment string ENVIRON$ ENVIRON$(environment-string) Get environment value EXTRACTRESOURCE EXTRACTRESOURCE ResourceNumber%, FileName$ Extracts a resource to file FIELD$ FIELD$(StringExpresion, Deliminator, FieldNumber) Returns a field/token separated by deliminators. FILEEXISTS FILEEXISTS(FileName$) Returns 0 if file not found, non-zero otherwise FIX FIX(NumericExpression) Truncates fractional number, rounding down towards 0. FLOOR FLOOR(NumericExpression) Rounds a numeric expression down towards negative infinity. FORMAT$ FORMAT$(S$, arg1, arg2, ...) Returns a formatted string assembled from a format string and a series of arguments (up to 50) FRAC FRAC(NumericExpression) Returns the fractional part of the numeric expression. HEX$ HEX$(NumericExpression) Returns the HEXidecimal string representation of the NumericExpression INC INC(Variable [, IncVal]) Increments variable by 1 unless otherwise specified INITARRAY INITARRAY(Array, values, ...) Initializes array with corresponding values INP INP(Address) Returns the byte value read from an I/O port 0..65535 INPW INPW(Address) Returns the word value read from an I/O port 0..65535 INSERT$ INSERT$(Source$, S$, Index) Insert Source$ string to string S$ at Index INSTR INSTR([Start,] SearchString, FindString) Function Returns the position in the SearchString that FindString was found, 0 otherwise INT INT(NumericExpression) Convert NumericExpression to a 32-bit INTEGER, truncating decimals. KILL KILL(Filename) Deletes file KILLMESSAGE KILLMESSAGE hWnd, Message Removes message from queue LBOUND LBOUND(ArrayName[, Dimension]) Returns the lowerbound of an array (Dimension starts at 1) LCASE LCASE$(StringExpression) StringExpression is lowercased LEFT LEFT$(StringExpression, N) Returns the leftmost N characters of a string LCASE$ LCASE$(StringExpression) StringExpression is lowercased LEFT$ LEFT$(StringExpression, N) Returns the leftmost N characters of a string LEN LEN(StringExpression) Returns the length of string LFLUSH LFLUSH Calling this will start printing your document. Make sure all your LPRINTs are executed before calling LFLUSH. LIBRARYINST LIBRARYINST(DLLName) Returns the handle to a loaded DLL module LOG LOG(NumericExpression) Returns the natural logarithm of NumericExpression LPRINT LPRINT [Expression][|,][...] LPRINT acts exactly like PRINT, except all output is directed to the default printer. Make sure to call LFLUSH. Also see the Printer component for graphical printing. LTRIM LTRIM$(StringExpression) Returns string with left padded spaces removed LTRIM$ LTRIM$(StringExpression) Returns string with left padded spaces removed MEMCMP MEMCMP(ptr1, ptr2, count) Compares 2 memory addresses, Returns 0 if not equal, non-zero otherwise. MEMCPY MEMCPY(destination, source, count) Copies count bytes of source memory address to destination memory address. MEMSET MEMSET(source, char, n) Initializes a source memory block with n bytes of char. MESSAGEBOX MESSAGEBOX(Msg$, Title$, MsgButtons%) Displays a simple message box with prompts MESSAGEDLG MESSAGEDLG(Msg$, MsgType, MsgButtons, HelpContext) Displays a message dialog box, see RAPIDQ.INC for proper types buttons MID$ MID$(StringExpression, I, N) Returns string with characters from I to N of StringExpression MKDIR MKDIR Dir$ Creates new directory OUT OUT(Address, bytevalue) Sends a byte value to a machine I/O port 0..65535 OUTW OUTW(Address, wordvalue) Sends a word value to a machine I/O port 0..65535 PLAYWAV PLAYWAV FileName$|Resource_Handle, SndOption Plays a WAV file, see RAPIDQ.INC for sndOptions POSTMESSAGE POSTMESSAGE(Handle, uMsg, wParam, lParam) Post message to handle, and does not block. Refer to your favourite WinAPI guide for the proper message numbers QUICKSORT QUICKSORT(Array-begin, Array-end, ASCEND | DESCEND) Sort any array, BYTE, WORD, SHORT, STRING, etc... RANDOMIZE RANDOMIZE [Num] Use randomize to reseed the random number generator READ READ variable [, variable, ...] Reads next DATA statement, stores it in variable. REDIM REDIM Array(1000) AS INTEGER Use REDIM to redimension an array preserving existing data. REDIM is equivalent to DIM if the array has not yet been allocated. RENAME RENAME File1$, File2$ Renames File1$ to File2$ REPLACE REPLACE$(S$, R$, Index) Replaces a string from S$ with R$ starting at Index REPLACE$ REPLACE$(S$, R$, Index) Replaces a string from S$ with R$ starting at Index REPLACESUBSTR$ REPLACESUBSTR$(Source$, ReplaceStr$, Withstr$) Replaces the string ReplaceStr$ in Source$ with WithStr$ RESTORE RESTORE [linelabel] Jumps to specific position in DATA statement. RESOURCE RESOURCE(number%) Get numeric value of Resource, mainly for use with ExtractResource, 0 based array. RESOURCECOUNT RESOURCECOUNT Get resource count. REVERSE REVERSE$(S$) Reverses a string REVERSE$ REVERSE$(S$) Reverses a string RGB RGB(Red%, Green%, Blue%) Returns the BGR numeric representation of the color. RIGHT RIGHT$(StringExpression, N) Returns the righttmost N characters of a string RIGHT$ RIGHT$(StringExpression, N) Returns the righttmost N characters of a string RINSTR RINSTR([Start,] SearchString, FindString) Reverse INSTR Function, searching starts from the end of SearchString RMDIR RMDIR(Dir$) Removes directory RND RND(UpperBound) Returns a random number, if no upperbound is given, it Returns a decimal number. Use RANDOMIZE to reseed. ROUND ROUND(NumericExpression) Rounds number to nearest integer. RTRIM$ RTRIM$(StringExpression) Returns string with rightmost padded spaces removed RUN RUN(command$) Executes command, but does not block SENDMESSAGE SENDMESSAGE(Handle, uMsg, wParam, lParam) Post message to handle, and blocks. Refer to your favourite WinAPI guide for the proper message numbers SGN SGN(NumericExpression) Returns the sign of a numeric expression SHELL SHELL(command$) Executes command, and blocks until finished SHOWMESSAGE SHOWMESSAGE(msg$) Popups message in a simple box SIN SIN(NumericExpression) Returns sine of an angle given in radians SOUND SOUND freq, duration Outputs sound through PC Speaker SPACE$ SPACE$(Num) Returns string with Num spaces SQR SQR(NumericExpression) Returns the square root of NumericExpression, make sure it's non-negative STATIC STATIC Variable AS DataType Creates variable of type DataType and preserves variable between procedure calls STR STR$(NumericExpression) Returns the string representation of the numeric expression STR$ STR$(NumericExpression) Returns the string representation of the numeric expression STRF$ STRF$(NumericExpression, Format%, Precision%, Digits%) Converts a floating point or number value to a string STRING$ STRING$(m, n) or STRING$(m, StringExpression) Returns a string m characters wide that only contains CHR$(n) character SWAP SWAP A, B Exchanges values, so A B and B A TALLY TALLY(SearchString, MatchString) Returns the number of occurrences of matchstring TAN TAN(NumericExpression) Returns tangent of an angle given in radians TIME$ TIME$ Returns the current time in HH:MM:SS format. TIMER T TIMER Returns the current TIMER value UBOUND UBOUND(ArrayName[, Dimension]) Returns the upperbound of array (Dimension starts at 1) UCASE$ UCASE$(StringExpression) Returns a string whose characters have been uppercased UNLOADLIBRARY UNLOADLIBRARY(DLLName) Removes DLL from memory VAL VAL(StringExpression) Returns the closest numeric representation of the string expression VARPTR VARPTR(variablename) Returns the address of a variable. VARPTR VARPTR$(address) Returns the null-terminated string representation of a given address. VARPTR$ VARPTR$(address) Returns the null-terminated string representation of a given address. VARTYPE VARTYPE(variant) Returns the type of a variant 0 - Integer, 1 - Float, 2 - String. Circle Circle(x1%, y1%, x2%, y2%, c%, fill%) Draw Fill Circle 6 CopyRect CopyRect(D, Image, S) D and S are QRECTs, Image can be a QImage, QCanvas, or QBitmap 3 Draw Draw(x%, y%, BMP) Draw Bitmap on Canvas 3 FillRect FillRect(x1%, y1%, x2%, y2%, c%) Draws Fills a rectangle 5 Line Line(x1%, y1%, x2%, y2%, c%) Draws a line 5 LoadFromFile LoadFromFile(FileName$) Load BMP from a file 1 LoadFromStream LoadFromStream(Stream) Load BMP from a stream 1 Paint Paint(x%, y%, c%, borderc%) Fill Region 4 Pset Pset(x%, y%, c%) Pixel plot 3 Rectangle Rectangle(x1%, y1%, x2%, y2%, c%) Draws a rectangle 5 Rotate Rotate(xOrigin%, yOrigin%, Angle%) Rotates entire bitmap at specified origin 3 SaveToFile SaveToFile(FileName$) Save BMP to a file 1 SaveToStream SaveToStream(Stream) Save BMP to a stream 1 StretchDraw StretchDraw(Rect AS QRECT, BMP) Draw BMP and stretch to fit inside Rect 2 TextHeight TextHeight(Text$) AS WORD Returns the height, in pixels, of Text$ string 1 TextWidth TextWidth(Text$) AS WORD Returns the width, in pixels, of Text$ string 1 TextRect TextRect(Rect AS QRECT, x%, y%, S$, fc%, bc%) Write text, and clip within region Rect 6 TextOut TextOut(x%, y%, S$, fc%, bc%)