The PowerBASIC Language
PowerFeatures

The following table is a list of all BASIC language keywords in the PowerBASIC language and which Microsoft and PowerBASIC products they apply to. This should help in the conversion of source code to each PowerBASIC product.

ABS QB VB FB PB WN CC Return the absolute value of a number.
ACCEL ATTACH         WN   Attach a table of keyboard accelerators to a DDT™ dialog.
ACODE$         WN CC Translate a Unicode string into the equivalent ANSI string.
AND QB VB FB PB WN CC Binary AND operation: returns bits that are set both one term and another.
ARRAY     FB PB WN CC Sort, search, insert and delete elements in an array.
ARRAYATTR         WN CC Return various descriptive attributes of an array.
ASC QB VB FB PB WN CC Convert a character into a numeric ASCII value. (PowerBASIC also includes the ASCII function for the same purpose).
ASC statement       PB WN CC Modify any character in a string.
ASC(,n)       PB WN CC Convert any character from a string into a numeric ASCII value.
ASM       PB WN CC Insert an assembly language statement.
ATN QB VB FB PB WN CC Return the arctangent or inverse tangent of a number.
ATTRIB function     FB PB     Return the disk attributes of a file.
ATTRIB statement     FB PB     Set the disk attributes of a file.
BEEP QB VB FB PB WN CC Sound a tone through the PC speaker.
BIN$     FB PB WN CC Return a string that is a binary representation of a number.
BIN$(,digits)         WN CC Convert an integer-class number to a binary string.
BIT function       PB WN CC Return the value of a particular bit in an integer or bit array.
BIT statement       PB WN CC Set/Clear/Toggle the value of a particular bit in an integer or bit array.
BIT CALC         WN CC Set/Clear/Toggle the value of a particular bit based on the result of a calculation.
BITS       PB WN CC Convert between signed and unsigned integer values.
BLOAD QB   FB PB     Load binary data into memory from a file.
BSAVE QB   FB PB     Save a block of memory to a binary file.
CALL QB VB FB PB WN CC Call a Sub or Function.
CALL ABSOLUTE QB   FB PB     Call assembler code at a memory address.
CALL DWORD       PB WN CC Call a Sub or Function by address (pointer).
CALL INTERRUPT QB   FB PB     Call a software interrupt.
CALLSTK statement         WN CC Save a "how did I get here" list of Subs/Functions and their parameters at a given point of program execution.
CALLSTK$ function         WN CC Retrieve the details of a specific stack frame from the call stack.
CALLSTKCOUNT         WN CC Retrieve the number of stack frames in the call stack. Used in conjunction with the CALLSTK$ function above.
CBCTL         WN   Return the ID of a control in a callback function.
CBCTLMSG         WN   Return the message from a control in a callback function.
CBHNDL         WN   Return the window handle from a control in a callback function.
CBLPARAM         WN   Return the LPARAM message from a control in a callback function.
CBMSG         WN   Return the wMsg value from a control in a callback function.
CBWPARAM         WN   Return the WPARAM message from a control in a callback function.
CBYT   VB   PB WN CC Convert a numeric expression into a Byte value. (VB uses CBYTE)
CCUR   VB     WN CC Convert a numeric expression into a Currency value.
CCUX         WN CC Convert a numeric expression into an Extended Currency value.
CDBL QB VB FB PB WN CC Convert a numeric expression into a Double-Precision value.
CDWD       PB WN CC Convert a numeric expression into an unsigned DWord value.
CEIL     FB PB WN CC Convert a numeric value to an integer by returning the smallest integer that is greater than or equal to its value.
CEXT       PB WN CC Convert a numeric expression into an Extended-Precision value.
CHAIN QB   FB PB     Transfer control to another BASIC program.
CHDIR QB VB FB PB WN CC Change the current default directory.
CHOOSE   VB     WN CC Return one of several values, based upon the value of an index.
CHDRIVE   VB FB PB WN CC Change the current default drive.
CHR$ QB VB FB PB WN CC Convert a byte value into a 1 byte string.
CHR$(n,n,n,...)     FB PB WN CC Convert 1 or more byte values into a string.
CINT QB VB FB PB WN CC Convert a numeric expression into an Integer value.
CIRCLE QB VB FB PB     Draw a circle in a graphics screen.
CLEAR QB   FB PB     Reset all variables, close all files and turn off event trapping.
CLNG QB VB FB PB WN CC Convert a numeric expression into a Long Integer value.
CLOSE QB VB FB PB WN CC Close an open file or device.
CLS QB VB FB PB   CC Clear the display.
CLSID$         WN CC Return a 16-byte CLSID string (128-bit GUID format string) associated with a unique ProgramID string of a COM object or component.
CODEPTR     FB PB WN CC Return the address to a label, sub or function.
CODEPTR32       PB     Return a 32-bit pointer address to a label, sub or function.
CODESEG     FB PB     Return a segment pointer address to a label, sub or function.
COLOR QB   FB PB   CC Set the foreground and background colors for printed text.
COLOR (graphics) QB   FB PB     Set the color for graphics operations.
COM statement QB   FB PB     Control the event trapping of the serial ports.
COMBOBOX         WN   Manipulate a Combo Box in a dialog.
COMM function         WN CC Return information about a COMM port configuration.
COMM OPEN/CLOSE         WN CC Serial Communications with Windows devices.
COMM statement         WN CC Change the configuration of a COMM port.
COMMAND$ QB VB FB PB WN CC Return any command line parameters used to start a program.
COMMON QB   FB PB     Designate common variables.
CONSIN       PB   CC Return whether input has been redirected.
CONSOUT       PB   CC Return whether output has been redirected.
CONSNAME$           CC Return the name of the console window.
CONSOLE NAME           CC Set the name of the console window.
CONSOLE SCREEN           CC Set the size of the console window.
CONTROL         WN   Manipulate GUI controls in a dialog.
COS QB VB FB PB WN CC Return the cosine of an angle.
CQUD       PB WN CC Convert a numeric expression into a Quad-integer value.
CSET statement         WN CC Center a string within the space of another string or User-Defined Type.
CSET$ function         WN CC Return a string containing a centered (padded) string.
CSNG QB VB FB PB WN CC Convert a numeric expression into a Single-Precision value.
CSRLIN QB   FB PB     Return the row position of the cursor.
CURDIR$   VB FB PB WN CC Return the current default drive and directory.
CURSOR function           CC Return the status and size of the cursor.
CURSOR statement           CC Set the status and size of the cursor.
CURSORX           CC Return the column position of the cursor.
CURSORY           CC Return the row position of the cursor.
CVBYT     FB PB WN CC Convert a binary string into a byte value.
CVCUR         WN CC Convert a binary string into a currency value.
CVCUX         WN CC Convert a binary string into an extended-currency value.
CVD QB   FB PB WN CC Convert a binary string into a double-precision value.
CVDWD     FB PB WN CC Convert a binary string into a double-word value.
CVE       PB WN CC Convert a binary string into a extended-precision value.
CVI QB   FB PB WN CC Convert a binary string into an integer value.
CVL QB   FB PB WN CC Convert a binary string into a long-integer value.
CVMD     FB PB     Convert a Microsoft Binary Format string into a double-precision value.
CVMS     FB PB     Convert a Microsoft Binary Format string into a single-precision value.
CVQ     FB PB WN CC Convert a binary string into a quad-integer value.
CVS QB   FB PB WN CC Convert a binary string into a single-precision value.
CVWRD       PB WN CC Convert a binary string into a word value.
CWRD       PB WN CC Convert a numeric expression into a word value.
DATA QB VB FB PB     Declare numeric or string data values in the source code to be read by the READ statement.
DATA         WN CC Declare string data values in the source code to be read by the READ$ function.
DATACOUNT         WN CC Return the total number of strings in DATA statements.
DATE$ QB VB FB PB WN CC Set and retrieve the system date.
DECLARE QB VB FB PB WN CC Explicitly declare subs and functions.
DECR     FB PB WN CC Decrement a numeric variable or a pointer address.
DEF FN QB   FB PB     Create a user-defined function.
DEF SEG QB   FB PB     Define the active 64k segment for PEEK/POKE operations.
DEFBCD     FB PB     Set the default variable type to BCD.
DEFBYT   VB   PB WN CC Set the default variable type to a byte. (VB uses DEFBYTE).
DEFCUR   VB     WN CC Set the default variable type to currency.
DEFCUX         WN CC Set the default variable type to extended-currency.
DEFDBL QB VB FB PB WN CC Set the default variable type to double-precision.
DEFDWD       PB WN CC Set the default variable type to a double-word.
DEFEXT       PB WN CC Set the default variable type to extended-precision.
DEFFIX     FB PB     Set the default variable type to fixed-point BCD.
DEFFLX     FB PB     Set the default variable type to flex strings.
DEFINT QB VB FB PB WN CC Set the default variable type to integer.
DEFLNG QB VB FB PB WN CC Set the default variable type to a long-integer.
DEFQUD       PB WN CC Set the default variable type to a quad-integer.
DEFSNG QB VB FB PB WN CC Set the default variable type to single-precision.
DEFSTR QB VB FB PB WN CC Set the default variable type to a string.
DEFWRD       PB WN CC Set the default variable type to a word.
DELAY     FB PB     Pause the application for a specified amount of time.
DIALOG         WN   Create and manipulate Windows dialogs.
DIM QB VB FB PB WN CC Declare and dimension arrays and variables.
DIR$   VB FB PB WN CC Return a filename that matches the given mask.
DIR$ CLOSE         WN CC Force the release of the operating system FindNext handle.
DISKFREE         WN CC Return the amount of available bytes on a drive.
DISKSIZE         WN CC Return the amount of total bytes on a drive.
DO/LOOP QB VB FB PB WN CC Repeat the code within the loop (optionally, while or until an expression is True).
DRAW QB   FB PB     Draw shapes in a graphics screen.
END QB VB FB PB     Stop execution of the program and exit to the operating system.
ENDMEM     FB PB     Return the address of the end of physical memory.
ENVIRON QB   FB PB     Set the value for an environment variable.
ENVIRON$ QB VB FB PB WN CC Return the value for an environment variable.
EOF QB VB FB PB WN CC Return the end-of-file status of an opened file.
EQV QB VB FB PB WN CC Binary EQV operation: returns bits that are equivalent in two terms.
ERASE QB VB FB PB WN CC Deallocate or clear array memory.
ERADR     FB PB     Return the address of the most recent run-time error.
ERDEV/ERDEV$ QB   FB PB     Return device driver error information.
ERR QB VB FB PB WN CC Return the error code of the most recent run-time error.
ERRCLEAR         WN CC Return and clear the error code of the most recent run-time error.
ERL QB   FB PB     Return the line where the most recent run-time error occured.
ERROR QB VB FB PB WN CC Cause a runtime error to be generated.
ERROR$   VB     WN CC Describe a specified run-time error code.
ERRTEST     FB PB WN CC Return the error code of the most recent run-time error.
EXECUTE     FB PB     Transfers control to the specified program.
EXIT QB VB FB PB WN CC Transfer program execution out of a block structure.
EXIT FAR       PB     Leave a SUB or FUNCTION skipping "multiple levels".
EXIT FAR AT       PB     Specify the exit point for EXIT FAR.
EXP QB VB FB PB WN CC Return a base number raised to a power.
EXP2     FB PB WN CC Return a base number raised to a power.
EXP10     FB PB WN CC Return a base number raised to a power.
EXTERNAL     FB PB     Share variables with the main program from inside a unit.
EXTRACT$       PB WN CC Return the portion of a string leading up to the first occurrence of a specified character or string.
FIELD QB   FB PB     Create a random access file buffer.
FILEATTR QB VB FB PB WN CC Return information about an open file.
FILECOPY   VB     WN CC Copy a file from one location to another.
FILENAME$         WN CC Return the name of an open file.
FILES QB   FB PB     Display the contents of a disk directory.
FILESCAN         WN CC Rapidly scan a file opened for INPUT or BINARY mode, in order to obtain size information about variable length string data.
FIX QB VB FB PB WN CC Truncate a number to an integer.
FIXDIGITS       PB     Controls the interpretation of BCD fixed-point numbers.
FLEXCHR$       PB     Determines the character used to pad flex strings and random access file buffers.
FLUSH       PB WN CC Commit buffered, unwritten data to a disk file.
FOR/NEXT QB VB FB PB WN CC Repeat the code within the loop according to a specified count.
FORMAT$   VB     WN CC Format numeric data according to instructions contained in a format expression.
FRAC       PB WN CC Return the fractional part of a floating-point number.
FRE QB   FB PB     Return the amount of free memory available to your program.
FREEFILE QB VB FB PB WN CC Return the next available file number.
FUNCNAME$         WN CC Return the name of the current Sub/Function.
FUNCTION QB VB FB PB WN CC Define a function block.
GET QB VB FB PB WN CC Read a record from a random-access file or a variable from a binary file.
GET$     FB PB WN CC Read a string from a file opened in binary mode.
GETATTR   VB     WN CC Return the attributes of a file.
GETSTDERR           CC Return the handle of the standard error device.
GETSTDIN           CC Return the handle of the standard input device.
GETSTDKBD           CC Return the handle of the keyboard device, which may differ from GETSTDIN if redirection is in effect.
GETSTDOUT           CC Return the handle of the standard output device.
GETSTDVID           CC Return the handle of a specified console video page.
GLOBAL   VB     WN CC Declare global (shared) variables between procedures and functions.
GOSUB QB VB FB PB WN CC Invoke a subroutine.
GOSUB DWORD       PB WN CC Invoke a subroutine by address.
GOTO QB VB FB PB WN CC Transfer program execution to the statement identified by a label or line number.
GOTO DWORD       PB WN CC Transfer program execution to the statement identified by a pointer address.
GUID$         WN CCReturn a 16-byte (128-bit) binary Globally Unique Identifier (GUID/UUID) 
GUIDTXT$         WN CCReturn a 38-byte human-readable Globally Unique Identifier (GUID/UUID) 
HEX$ QB VB FB PB WN CC Return a string that is a hexadecimal (base 16) representation.
HIBYT         WN CC Extract the most significant (high) Byte from an Integer or Word value.
HIINT         WN CC Extract the most significant (high) Integer from a Long or DWord value.
HIWRD         WN CC Extract the most significant (high) Word from a Long or DWord value.
HOST ADDR         WN CC Translate a host name into a corresponding IP address.
HOST NAME         WN CC Translate an IP address into a corresponding host name.
IF/THEN/ELSEIF/ELSE QB VB FB PB WN CC Test a condition and execute one or more program statements only if the condition is met.
IIF   VB     WN CC Return one of two values based on a True/False evaluation of an expression.
IMP QB VB FB PB WN CC Binary IMP operation: returns bits that are implied in a second term by a first term.
INCR       PB WN CC Increment a numeric variable or a pointer address.
INKEY$ QB   FB PB   CC Return a keystroke from the keyboard buffer if one is available. (In PB/CC it also returns mouse events.)
INP QB   FB PB     Read a byte from a hardware port.
INPUT QB   FB PB     Prompt the user for keyboard input and places the values in one or more variables.
INPUT# QB VB FB PB WN CC Load variables with data from a sequential file.
INPUT$ QB VB FB PB WN CC Read data from a device into a string.
INPUTBOX   VB     WN   Prompt the user for an input string.
INPUT FLUSH           CC Clear pending keyboard and mouse events from the input buffer.
INSHIFT           CC Return the status of the shift keys and mouse events.
INSTAT     FB PB   CC Return true if a key is in the keyboard buffer.
INSTR QB VB FB PB WN CC Search a string for the first occurrence of a specified character or string.
INT QB VB FB PB WN CC Convert a numeric expression to an integer.
INTERFACE         WN CC Declare a dispatch interface and its member Methods/Properties for early binding to a COM interface.
IOCTL/IOCTL$ QB   FB PB     Communicate with a device driver.
ISFALSE       PB WN CC Return the logical truth or falsity of the given expression.
ISNOTHING   VB     WN CC Determine whether an object variable is set to something. (IsEmpty in VB)
ISOBJECT   VB     WN CC Determine whether an object variable is set to an object.
ISTRUE       PB WN CC Return the logical truth or falsity of the given expression.
ITERATE       PB WN CC Start the next iteration of a loop immediately.
JOIN$   VB     WN CC Return a string consisting of all of the strings in a string array, each separated by a chosen delimiter.
KEY QB   FB PB     Set and displays function key definitions.
KILL QB VB FB PB WN CC Delete a disk file.
LBOUND QB VB FB PB WN CC Return the smallest possible subscript for an array's specified dimension.
LCASE$ QB VB FB PB WN CC Return a lower case version of its string argument.
LEFT$ QB VB FB PB WN CC Return the left most n characters of a string.
LEN QB VB FB PB WN CC Return the length of a variable or user-defined type.
LET QB VB FB PB WN CC Assign a value to a variable.
LIBMAIN         WN   User-defined function called by Windows each time a DLL is loaded into, and unloaded from, memory.
LINE QB VB FB PB     Draw a line on a graphics screen.
LINE INPUT QB   FB PB   CC Read a line from the keybord into a string variable, ignoring delimiters.
LINE INPUT# QB VB FB PB WN CC Read a line from a sequential file into a string variable, ignoring delimiters.
LISTBOX         WN   Manipulate list boxes in a dialog. (Visual Basic has a listbox object.)
LOBYT         WN CC Extract the first byte a from larger numeric value.
LOC QB VB FB PB     Return the current position of the file pointer.
LOCAL         WN CC Declare local variables in a Sub or Function.
LOCATE QB   FB PB   CC Set the position of the cursor.
LOCK QB VB FB PB WN CC Lock out other processes' access to part of an opened file.
LOF QB VB FB PB WN CC Return the length of a file.
LOG QB VB FB PB WN CC Return the natural (base e) logarithm of its argument.
LOG2     FB PB WN CC Return the base 2 logarithm of its argument.
LOG10     FB PB WN CC Return the base 10 logarithm of its argument.
LOINT         WN CC Extract the least significant (low) Integer from a Long or DWord value.
LOWRD         WN CC Extract the least significant (low) Word from a Long or DWord value.
LPOS QB   FB PB     Return the current column position of the printer.
LPRINT QB   FB PB   CC Send a string of characters to the printer.
LSET statement QB VB FB PB WN CC Left align a string within the space of another string.
LSET$ function         WN CC Return a string containing a left-justified (padded) string.
LTRIM$ QB VB FB PB WN CC Return a copy of a string with leading characters or strings removed.
MACRO         WN CC Define a text substitution for program source code.
MAKDWD         WN CC Convert a low-order 16-bit value and a high order 16-bit value into a 32-bit value.
MAKINT         WN CC Take the low-order byte from each of two integer-class variables and combine to produce a signed 16-bit Integer value.
MAKLNG         WN CC Convert a low-order 16-bit value and a high order 16-bit value into a 32-bit value.
MAKPTR         WN CC Convert a low-order 16-bit value and a high order 16-bit value into a 32-bit value.
MAKWRD         WN CC Take the low-order byte from each of two integer-class variables and combine to produce an unsigned 16-bit WORD value.
MAP     FB PB     Define dynamic data structures and random-access file buffers.
MAT         WN CC Perform matrix algebra calculations on arrays.
MAX       PB WN CC Return the argument with the largest (maximum) value.
MEMPACK       PB     Compresses the heap and string segments.
MEMSET     FB PB     Declare the upper limit of useable memory.
MENU         WN   Create and manipulate menus for Windows.
MID$ QB VB FB PB WN CC Return a portion of a string.
MID$ statement QB VB FB PB WN CC Change only a portion of a string.
MIN       PB WN CC Return the argument with the smallest (minimum) value.
MKBYT$       PB WN CC Convert numeric data into a binary string.
MKCUR$         WN CC Convert a currency value into a binary string.
MKCUX$         WN CC Convert an extended currency value into a binary string.
MKD$ QB   FB PB WN CC Convert a double-precision value into a binary string.
MKDIR QB VB FB PB WN CC Create a subdirectory (like the DOS MKDIR command).
MKDWD$       PB WN CC Convert a DWord value into a binary string.
MKE$       PB WN CC Convert an extended-precision value into a binary string.
MKF$     FB PB     Convert a BCD value into a binary string.
MKI$ QB   FB PB WN CC Convert an integer value into a binary string.
MKL$ QB   FB PB WN CC Convert a long integer value into a binary string.
MKMD$     FB PB     Convert a double-precision value into a Microsoft compatible binary string.
MKMS$     FB PB     Convert a single-precision value into a Microsoft compatible binary string.
MKQ$       PB WN CC Convert a quad integer value into a binary string.
MKS$ QB   FB PB WN CC Convert a single-precision value into a binary string.
MKWRD$       PB WN CC Convert an unsigned-word value into a binary string.
MOD QB VB FB PB WN CC Return the remainder of the division between two whole numbers.
MOUSE           CC Define which mouse events to trap.
MOUSEBUTTONS           CC Return the number of buttons on the mouse.
MOUSEPTR         WN   Select the image to use for the mouse cursor.
MOUSESTAT           CC Return whether a mouse event is waiting to be retrieved.
MOUSEX           CC Return the X coordinate of the mouse cursor as of the last mouse event report.
MOUSEY           CC Return the Y coordinate of the mouse cursor as of the last mouse event report.
MSGBOX   VB     WN   Display a title and text string in a dialog window.
MTIMER     FB PB     Reads or sets the micro timer.
NAME QB VB FB PB WN CC Rename a file or a directory (like the DOS REN command).
NOT QB VB FB PB WN CC Invert the bits in an integer-class expression.
OBJACTIVE         WN CC Return True/False as an indication of the running state of an initialized COM object.
OBJECT         WN CC Communicate with a COM object through the dispatch interface.
OBJPTR         WN CC Return an object pointer contained in the specified object variable.
OBJRESULT         WN CC Return the result of the execution of the most recent OBJECT statement.
OCT$ QB VB FB PB WN CC Return a string that is the octal (base 8) representation of its argument.
ON COM QB   FB PB     Define the trap subroutine for COM events.
ON ERROR QB VB FB PB WN CC Specify an error handling routine and enable or disable error trapping.
ON/GOSUB QB VB FB PB WN CC Call one of several subroutines according to the value of a numeric expression.
ON/GOTO QB VB FB PB WN CC Send program flow to one of several possible destinations based on the value of a numeric expression.
ON KEY QB   FB PB     Define the trap subroutine for keyboard events.
ON PEN QB   FB PB     Define the trap subroutine for light pen events.
ON PLAY QB   FB PB     Define the trap subroutine for background music events.
ON STRIG QB   FB PB     Define the trap subroutine for joystick events.
ON TIMER QB   FB PB     Define the trap subroutine for timer events.
ON UEVENT QB   FB PB     Define the trap subroutine for user-defined events.
OPEN/CLOSE QB VB FB PB WN CC Start or stop accessing a binary, random access, or text file.
OPEN "COMx" QB   FB PB     Serial communications through File I/O statements.
OPTION BASE QB VB FB PB     Set the minimum value for array subscripts.
OPTION EXPLICIT   VB     WN CC Require explicit declaration of all variables.
OR QB VB FB PB WN CC Binary OR operation: returns bits that are set in either one term or another.
OUT QB   FB PB     Send a byte to a hardware port.
PAGE           CC Set the active and visible display pages.
PAGEACTIVE           CC Returns the current active console page number.
PAGEVISIBLE           CC Returns the current visible console page number.
PAINT QB   FB PB     Fills an enclosed area on a graphics screen.
PALETTE QB   FB PB     Change colors in the palette.
PALETTE USING QB   FB PB     Change colors in the palette using index values in an array.
PARSE STATEMENT         WN CC Return a delimited field from a string expression.
PARSE$ FUNCTION         WN CC Parse an entire string and extract all delimited fields into an array.
PARSECOUNT         WN CC Return the count of delimited fields in a string expression.
PBMAIN         WN CC User-defined function called by Windows to begin execution of an application.
PCOPY QB         CC Copy one screen page to another.
PEEK QB   FB PB WN CC Return the byte at a specified memory location.
PEEK$       PB WN CC Return the sequence of bytes at a specified memory location.
PEEKI     FB PB     Return the integer value at a specified memory location.
PEEKL     FB PB     Return the long integer value at a specified memory location.
PEN QB   FB PB     Control the checking of light-pen events.
PLAY QB   FB PB     Create music and control PLAY buffer checking.
PLAY function QB   FB PB     Return the number of notes in the background music buffer.
PMAP QB   FB PB     Translate between physical and logical graphics coordinates.
POINT QB VB FB PB     Return the color of a screen pixel.
POKE QB   FB PB WN CC Store a byte at a specified memory location.
POKEI     FB PB     Store an integer at a specified memory location.
POKEL     FB PB     Store a long-integer at a specified memory location.
POKE$       PB WN CC Store a sequence of bytes at a specified memory location.
POPUP       PB     Control how a TSR program pops up and down.
POPUP function       PB     Return information about a TSR POPUP program.
POS QB   FB PB     Return the current cursor column.
PRESET QB   FB PB     Plot a point (or pixel, or pel) on a graphics screen.
PRINT QB VB FB PB   CC Print text to the screen.
PRINT USING QB   FB PB     Print formatted text to the screen.
PRINT# QB VB FB PB WN CC Print text to a file or device.
PRINT# USING QB   FB PB     Print formatted text to a file or device.
PROFILE         WN CC Capture a profile detailing total execution times of the Subs and Functions in a program.
PROGID$         WN CC Return the unique alphanumeric PROGID string (text) associated with a unique CLSID string of a COM object or component.
PSET QB VB FB PB     Draw a pixel on the screen.
PUBLIC     FB PB     Define variables shared with units and object modules.
PUT QB VB FB PB WN CC Write a record to a random-access file or a variable to a binary file.
PUT$     FB PB WN CC Write a string to a file opened in binary mode.
RANDOMIZE QB VB FB PB WN CC Seed the random number generator.
READ QB VB FB PB     Retrieve a data item from a local DATA list.
READ$         WN CC Retrieve a specified data item from a local DATA list.
REDIM QB VB FB PB WN CC Deallocate and reallocate storage space in arrays.
REG     FB PB     Return the register values after CALL INTERRUPT.
REG statement     FB PB     Set the register values for CALL INTERUPT.
REGEXPR         WN CC Scan a string for a matching regular expression.
REGISTER         WN CC To define register variables that are local to a sub or function.
REGREPL         WN CC Scan a string for a matching regular expression and replace it with a new value.
REM QB VB FB PB WN CC Interpret the remainder of a program line as a remark or comment.
REMAIN$         WN CC Return the portion of a string following the first occurrence of a specified character or string.
REMOVE$       PB WN CC Return a copy of a string with characters or strings removed.
REPEAT$       PB WN CC Return a string consisting of multiple copies of the specified string.
REPLACE       PB WN CC Replace all occurrences of one string with another string.
RESET         WN CC Set a scalar variable or user-defined type to zero/null.
RESET QB VB FB PB     Close all open files.
RESTORE QB   FB PB     Reset the READ pointer for reading DATA items.
RESUME QB VB FB PB WN CC Restart program execution after error handling with ON ERROR GOTO.
RETAIN$         WN CC Return a string containing only the characters contained in a specified match string. All other characters are removed.
RETURN QB VB FB PB WN CC Return from a (GOSUB) subroutine to its caller.
RGB   VB     WN CC Return a long integer representing an RGB color value.
RIGHT$ QB VB FB PB WN CC Return the rightmost n characters of a string.
RMDIR QB VB FB PB WN CC Delete a disk directory (like the DOS RMDIR command).
RND QB VB FB PB WN CC Return a random number.
RND(a,z)       PB WN CC Return a random number between a start and ending integer value.
ROTATE       PB WN CC Rotate the bits in an integer variable.
ROUND   VB FB PB WN CC Round a numeric value to a specified number of decimal places.
RSET statement QB VB FB PB WN CC Right justify a string into the space of a string variable, or a user-defined type.
RSET$ function         WN CC Return a string containing a right-justified (padded) string.
RTRIM$ QB VB FB PB WN CC Return a copy of a string with trailing characters or strings removed.
RUN QB   FB PB     Restart the current program or execute another program.
SCREEN function QB   FB PB   CC Return the character at a specified screen location. (DOS versions can also return the attribute).
SCREEN statement QB   FB PB     Set the display mode (text or graphics + resolution).
SCREENATTR           CC Return the attribute of a specified screen location.
SCREENX           CC Return the width of the screen in columns.
SCREENY           CC Return the height of the screen in rows.
SCROLL           CC Scroll any part of the screen in any direction.
SEEK statement QB VB FB PB WN CC Set the position in a file for the next input or output operation.
SEEK function QB VB FB PB WN CC Return the location within a file where the next I/O operation will take place.
SELECT CASE QB VB FB PB WN CC Control program flow based on the value of an expression.
SET   VB     WN CC Assign a Dispatch Interface reference to an object variable in preparation to use a COM interface.
SETATTR   VB     WN CC Set the attributes of a file.
SETEOF       PB WN CC Truncate an open file to its current position.
SETMEM QB   FB PB     Set or return the size of the far memory heap.
SGN QB VB FB PB WN CC Return the sign of a numeric expression.
SHARED QB   FB PB     Declare global variables.
SHELL QB   FB PB WN CC Run an executable program.
SHELL function   VB     WN CC Run an executable program asynchronously.
SHIFT       PB WN CC Shift the bits in an integer class variable.
SIN QB VB FB PB WN CC Return the trigonometric sine of its argument.
SIZEOF       PB WN CC Return the total length of any variable.
SLEEP QB     PB WN CC Pause the application, allowing other processes to continue.
SOUND QB   FB PB     Make a sound of a given frequency and duration.
SPACE$ QB VB FB PB WN CC Return a string consisting of a specified number of spaces.
SPC QB VB FB PB WN CC Print a given number of spaces.
SQR QB VB FB PB WN CC Return the square root of its argument.
STATIC QB VB FB PB WN CC Declare static variables inside of a Sub or Function.
STDEOF           CC Return whether the end of standard input has been reached.
STDERR       PB   CC Send text to the standard error device.
STDIN       PB     Get text from the standard input device.
STDIN LINE       PB   CC Get a line of text from the standard input device.
STDOUT       PB   CC Send text to the standard output device.
STICK QB   FB PB     Return joystick position information.
STOP QB VB FB PB     Halt program execution.
STR$ QB VB FB PB WN CC Return the string representation of a number.
STRDELETE$         WN CC Delete a specified number of characters from a string expression.
STRIG QB   FB PB     Control joystick trapping.
STRING$ QB VB FB PB WN CC Return a string consisting of multiple copies of the specified character.
STRINSERT$         WN CC Insert a string at a specified position within another string expression.
STRPTR     FB PB WN CC Return the address of a dynamic string variable's data.
STRPTR32     FB PB WN CC Return the 32-bit address of a dynamic string variable's data as a DWORD.
STRREVERSE$   VB     WN CC Reverse the contents of a string expression.
STRSEG     FB PB     Return the segment of a dynamic string variable's data.
SUB QB VB FB PB WN CC Define a procedure.
SWAP QB     PB WN CC Exchange the values of two variables.
SWITCH    VB     WN CC Return one of a series of values based upon the True/False evaluation of a corresponding series of expressions.
SYSTEM QB   FB PB     Terminate a program.
TAB statement QB VB FB PB WN CC Move the printing position to the specified column.
TAB$ function         WN CC Return a string with embedded TAB ($TAB) characters expanded with spaces to a given tab stop.
TALLY     FB PB WN CC Count the number of occurrences of specified characters or strings within a string.
TAN QB VB FB PB WN CC Return the trigonometric tangent of its argument.
TCP         WN CC TCP/IP communications (internet).
THREAD         WN CC Create, Suspend, Resume, Status or Close execution of a Windows Thread.
THREADCOUNT         WN CC Return the number of active threads that exist in a module.
TRACE         WN CC Capture a representation of the precise flow of execution in a module.
TIME$ QB VB FB PB WN CC Used to read or set the system time.
TIMER QB VB FB PB WN CC Return the number of seconds that have elapsed since 12:00 midnight.
TRIM$   VB     WN CC Return a copy of a string with leading/trailing characters or strings removed.
TRY/CATCH/FINALLY   VB     WN CC Structured run-time error handling.
TYPE QB VB   PB WN CC Define a user-defined data type containing one or more elements.
TYPE SET         WN CC Assign the value of a User-Defined Type or string expression into another User-Defined Type or string variable.
UBOUND QB VB FB PB WN CC Return the largest possible subscript for an array's specified dimension.
UCASE$ QB VB FB PB WN CC Return an all-uppercase version of its string argument.
UCODE$         WN CC Translate an ANSI string into the equivalent Unicode string.
UDP         WN CC UDP/IP communications (internet).
UEVENT QB   FB PB     Control user event trapping.
UNION       PB WN CC Create a new user-defined type whose elements overlap in memory.
UNLOCK QB VB FB PB WN CC Restore access by other processes to all or part of an opened file.
USING$     FB PB WN CC Format numeric or string data.
VAL QB VB FB PB WN CC Return the numeric equivalent of its string argument.
VARIANT#         WN CC Return the numeric value contained in a Variant variable.
VARIANT$         WN CC Return the dynamic string value contained in a Variant variable.
VARIANTVT         WN CC Determine the internal data type of the data stored in a Variant variable.
VARPTR QB VB FB PB WN CC Return the offset address of a variable.
VARPTR32       PB     Return the address of a variable as a DWORD.
VARSEG QB   FB PB     Return the segment address of a variable.
VERIFY       PB WN CC Determine whether each character of a string is present in another string.
VIEW QB   FB PB     Define a view port.
WAIT QB   FB PB     Suspend programs execution until a specified hardware status is met.
WAITKEY$           CC Return a keystroke from the keyboard buffer. Waits until a key is ready.
WHILE/WEND QB VB FB PB WN CC Define a block of program statements that are executed repeatedly as long as a certain condition is met.
WIDTH QB   FB PB     Define the screen width and height.
WIDTH# QB   FB PB     Assign an output-line width to a sequential file.
WINDOW QB   FB PB     Define a new graphics coordinate system.
WINMAIN         WN CC A user-defined function called by Windows to begin execution of an application.
WRITE QB   FB PB   CC Output data in delimited format to the screen.
WRITE# QB VB FB PB WN CC Output data in delimited format to a sequential file.
XOR QB VB FB PB WN CC Binary XOR operation: returns bits that are set in either one term or another, but not both.