C BASIC RUNTIME QUICK REFERENCE

KEYWORD DESCRIPTION CATEGORY FROM
ABS Absolute value of a number. Mathematics handling MB86
ASC Return decimal value of the first byte of a string. String manipulation MB86
ATN Arctangent of a number. Mathematics handling MB86
ATTACH Attach the specified printer to the current process. Mathematics handling MB86
BREAK Terminate a FOR/NEXT, DO/WHILE, or WHILE/WEND. Language keyword MB86
CALL Invoke a multi-Line function. Language keyword MB86
CB.Console.ConsoleExecute Sends commands to the console screen. Console management CB
CB.Console.FlushConsole% Flush the console. Console management CB
CB.Console.GetConsoleBufferSize% Return the console buffer size. Console management CB
CB.Console.GetConsoleCP% Return the console code page. Console management CB
CB.Console.GetConsoleCursorPosition% Return the console cursor position. Console management CB
CB.Console.GetConsoleOutputCP% Return the console output code page. Console management CB
CB.Console.GetConsoleWindowHandle% Return the console window handle. Console management CB
CB.Console.GetConsoleWindowPos% Return the console window position (top,left pixel). Console management CB
CB.Console.GetConsoleWindowSize% Return the console window size. Console management CB
CB.Console.GetCurrentConsoleFont% Return the font number currently used from the console. Console management CB
CB.Console.GetCurrentConsoleFontSize% Return the font size currently used from the console. Console management CB
CB.Console.GetHInstance% Return the module instance. Console management CB
CB.Console.GetKey% Get a key. Console management CB
CB.Console.GetKeyState% Return the key state. Console management CB
CB.Console.GetMaxConsoleWindowSize% Return the maximum console window size. Console management CB
CB.Console.GetNumberOfConsoleFonts% Return the number of console fonts available. Console management CB
CB.Console.GetTextAttributes% Return the console text attribute. Console management CB
CB.Console.IsAltKeyDown% Return non zero if the ALT key is down. Console management CB
CB.Console.IsConsoleRedirected% Return non zero if the console is redirected. Console management CB
CB.Console.IsCtrlKeyDown% Return non zero if the CTRL key is down. Console management CB
CB.Console.IsKeyDown% Return non zero if a given key is down. Console management CB
CB.Console.IsLeftCtrlKeyDown% Return non zero if the left CTRL key is down. Console management CB
CB.Console.IsLeftShiftKeyDown% Return non zero if the left SHIFT key is down. Console management CB
CB.Console.IsRightCtrlKeyDown% Return non zero if the right CTRL key is down. Console management CB
CB.Console.IsRightShiftKeyDown% Return non zero if the right SHIFT key is down. Console management CB
CB.Console.IsShiftKeyDown% Return non zero if the SHIFT key is down. Console management CB
CB.Console.KeyboardFetch% Fetch the keyboard. Console management CB
CB.Console.QSnap% Write text with attribute to a x,y console location. Console management CB
CB.Console.RefreshConsole% Refresh the console window. Console management CB
CB.Console.RestoreScreen Restore the console screen window. Console management CB
CB.Console.SaveScreen$ Save the console screen window. Console management CB
CB.Console.SendInput% Send a input to the keyboard. Console management CB
CB.Console.SetConsole25x80 Set the console window to 25x80 characters. Console management CB
CB.Console.SetConsole49x80 Set the console window to 49x80 characters. Console management CB
CB.Console.SetConsoleBufferSize% Set the console buffersize. Console management CB
CB.Console.SetConsoleCloseButton% Enable or disable the console window close button. Console management CB
CB.Console.SetConsoleCP% Set the console code page. Console management CB
CB.Console.SetConsoleCtrlHandler Set the CTRL handler. Console management CB
CB.Console.SetConsoleCursorState% Set the cursor size. Console management CB
CB.Console.SetConsoleOutputCP% Set the console output code page. Console management CB
CB.Console.SetConsoleWindowPos% Set the console window position (top,left pixel). Console management CB
CB.Console.SetConsoleWindowSize% Set the console window size. Console management CB
CB.Console.SetCurrentConsoleFont% Set the current console font. Console management CB
CB.Console.SetLockKey% Set the LOCK key state. Console management CB
CB.Console.SetTextAttributes% Set the console text attribute. Console management CB
CB.Console.ShowConsoleWindow% Show or hide the console window. Console management CB
CB.Console.ShowScrollBar% Show the window scroll bar. Console management CB
CB.Console.TransAnsiCodToWinAttrib% Translate Ansi escape code to Windows console attribute. Console management CB
CB.Console.TranslateAnsiStrToWinAttrib% Translate Ansi escape string to Windows console attribute. Console management CB
CB.Crypto.BinStrToHexStr$ Translate a binary string into an ASCII hex string. Cryptography support CB
CB.Crypto.CRC32% Perform a 32 bit Cyclic Redundancy Check calculation. Cryptography support CB
CB.Crypto.HexStrToBinStr$ Translate an ASCII hex string into a binary string. Cryptography support CB
CB.Crypto.MD5$ Perform a MD5 hash calculation. Cryptography support CB
CB.Crypto.SHA256$ Perform a SHA 256 bit hash calculation. Cryptography support CB
CB.Crypto.UUID$ Generate a universally unique identifier (UUID). Cryptography support CB
CB.Crypto.XOR$ Perform a XOR encryption between two strings. Cryptography support CB
CB.Datetime.CalendarDateToJulianDay Convert from calendar to Julian day. Date and time handling CB
CB.Datetime.GetFileDateTime% Return the file date and time. Date and time handling CB
CB.Datetime.IsLeapYear% Return non zero if the year is a leap year. Date and time handling CB
CB.Datetime.IsValidDate% Return non zero if the date is valid. Date and time handling CB
CB.Datetime.IsValidTime% Return non zero if the time is valid. Date and time handling CB
CB.Datetime.JulianDayToCalendarDate Convert a Julian day to calendar day. Date and time handling CB
CB.Datetime.Now$ Return a timestamp string. Date and time handling CB
CB.DBF.Close% Close a DBF file. dBase file support CB
CB.DBF.ColsCount% Return the columns (fields) count. dBase file support CB
CB.DBF.ColumnName$ Return the column (field) name. dBase file support CB
CB.DBF.ColumnSize% Return the column (field) size. dBase file support CB
CB.DBF.ColumnType$ Return the column (field) type. dBase file support CB
CB.DBF.GetColumn$ Return the column (field) content. dBase file support CB
CB.DBF.Open% Open a DBF file. dBase file support CB
CB.DBF.Read% Read a DBF record (next row). dBase file support CB
CB.DBF.RecordLength% Return a record (row) lenght. dBase file support CB
CB.DBF.RowsCount% Return a records (rows) count. dBase file support CB
CB.DBF.Version% Return the DBF version. dBase file support CB
CB.File.AppendFile% Append data to file. File Handling CB
CB.File.ChDir Change the current directory. File Handling CB
CB.File.CopyFile% Make a copy of file. File Handling CB
CB.File.DeleteFile% Delete a file. File Handling CB
CB.File.GetCurrentDirectory$ Return the current directory. File Handling CB
CB.File.GetCurrentDrive$ Return the current drive. File Handling CB
CB.File.GetDiskFree% Return the free space on disk (KBytes). File Handling CB
CB.File.GetDiskInfo% Retrieves information (sectors and clusters) about the specified disk. File Handling CB
CB.File.GetDiskSize% Return the disk size (KBytes). File Handling CB
CB.File.GetDiskUsed% Return the used space on disk (KBytes). File Handling CB
CB.File.GetExePath$ Retrieves the fully qualified path for the current process module. File Handling CB
CB.File.GetFolderPath$ Return the path to the special folder identified by the specified enumeration. File Handling CB
CB.File.GetOpenFileName$ Open the Windows OPENFILE standard dialog. File Handling CB
CB.File.IsDirectoryExist% Return non zero if the directory exists. File Handling CB
CB.File.IsFileExist% Return non zero if the file exists. File Handling CB
CB.File.IsFileInUse% Return non zero if the file is not in use. File Handling CB
CB.File.MkDir Make a directory. File Handling CB
CB.File.RecCount% Count the number of record from a file. File Handling CB
CB.File.RmDir Remove a directory. File Handling CB
CB.File.NumOfR% Count the number of record from a file. File Handling CB
CB.GUI.AnimateWindow% Enables you to produce special effects when showing or hiding windows. Graphical User Interface CB
CB.GUI.MessageBox% Display Windows standard message box dialog. Graphical User Interface CB
CB.GUI.MoveWindow% Changes the position and dimensions of the specified window. Graphical User Interface CB
CB.GUI.SetWindowPos% Changes the size, position, and Z order of a child, pop-up, or top-level window. Graphical User Interface CB
CB.GUI.ShowWindow% Sets the specified window's show state. Graphical User Interface CB
CB.Math.Hex$ Convert a number to hexadecimal value. Mathematics handling CB
CB.Math.IsEven% Return 1 if the number is even else return 0. Mathematics handling CB
CB.Math.IsOdd% Return 1 if the number is odd else return 0. Mathematics handling CB
CB.Math.Log10 Calculate the base 10 logarithm. Mathematics handling CB
CB.Math.Max% Return the maximum value. Mathematics handling CB
CB.Math.Min% Return the minimum value. Mathematics handling CB
CB.Math.Pi Returs the p value. Mathematics handling CB
CB.Other.High% Return the hight value. Memory manipulation CB
CB.Other.Low% Return the low value. Memory manipulation CB
CB.Other.PeekDW% Peek double word (32 bit) from memory. Memory manipulation CB
CB.Other.PokeDW% Poke double word (32 bit) to memory. Memory manipulation CB
CB.Printer.lClosePrinter Close the printer. Printer management CB
CB.Printer.lCreateFont Create a printer font. Printer management CB
CB.Printer.lDefaultFont Select default printer font. Printer management CB
CB.Printer.lDeleteFont Delete a printer font. Printer management CB
CB.Printer.lEndDoc End printer document. Printer management CB
CB.Printer.lEndPage End printer page. Printer management CB
CB.Printer.lGetBkColor Return the printer background color. Printer management CB
CB.Printer.lGetTextColor Return the printer text color. Printer management CB
CB.Printer.lOpenPrinter Open the printer. Printer management CB
CB.Printer.lPageSetupDlg Display a Windows standard Page Setup dialog. Printer management CB
CB.Printer.lPrintDlg Display a Windows standard print dialog. Printer management CB
CB.Printer.lPrinterNewPage Send a new page break to the printer. Printer management CB
CB.Printer.lSelectFont Select a printer font. Printer management CB
CB.Printer.lSetBkColor Select the printer background color. Printer management CB
CB.Printer.lSetTextColor Select the printer text color. Printer management CB
CB.Printer.lStartDoc Start a printer document. Printer management CB
CB.Printer.lStartPage Start a printer page. Printer management CB
CB.Printer.lTextOut Send text out to the printer. Printer management CB
CB.Process.AdjustPrivilege% Enables the token privilege (elevate user). Process handling CB
CB.Process.ChainNC Load a new program or overlay (new console and no child). Process handling CB
CB.Process.GetCBVersion$ Return the CB runtime version as string. Process handling CB
CB.Process.GetCBVersion% Return the CB runtime version as integer. Process handling CB
CB.Process.GetComputerName$ Return the computer name. Process handling CB
CB.Process.GetOSVersion% Return the Windows version. Process handling CB
CB.Process.GetUserName$ Return the user name. Process handling CB
CB.Process.Is64BitOS% Return non zero if is 64 bit Windows. Process handling CB
CB.Process.KillProcess% Terminates the specified process and all of its threads. Process handling CB
CB.Process.NoSound% Enable or disable the sound. Process handling CB
CB.Process.SetOnErrorCloseAll% On error close all open files. Process handling CB
CB.Process.ShellExecute% Performs an operation on a specified file. Process handling CB
CB.Process.Sleep% Wait for a number of milliseconds. Process handling CB
CB.Process.Sound% Produce a sound Process handling CB
CB.Process.SysCmd Execute the command prompt. Process handling CB
CB.RDS.IsProgramRunning$ Return the users that run the programs. Remote Desktop Services CB
CB.RDS.IsProgramRunning% Return the number of running program. Remote Desktop Services CB
CB.RDS.IsTerminalServer% Return non zero if the program is running on terminal server. Remote Desktop Services CB
CB.RESTFulWS.Get$ Perform RESTful web service HTTP GET verb. Representational State Transfer CB
CB.RESTFulWS.QuickGET$ Perform RESTful web service HTTP quick get. Representational State Transfer CB
CB.RESTFulWS.QuickOPEN% Perform RESTful web service HTTP quick open. Representational State Transfer CB
CB.RESTFulWS.QuickCLOSE% Perform RESTful web service HTTP quick close. Representational State Transfer CB
CB.RESTFulWS.SetVerboseMode% Enable o disable the verbose mode during a RESTful operation. Representational State Transfer CB
CB.Socket.CloseSocket% Closes an existing socket. Socket handling CB
CB.Socket.Connect% Establishes a connection to a specified socket. Socket handling CB
CB.Socket.GetHostByName$ Retrieves host information corresponding to a host name. Socket handling CB
CB.Socket.Recv% Receives data from a connected socket. Socket handling CB
CB.Socket.Send% Sends data on a connected socket. Socket handling CB
CB.Socket.SetSocket% Sets configuration for a socket. Socket handling CB
CB.Socket.Shutdown% Disables sends or receives on a socket. Socket handling CB
CB.Socket.Socket% Creates a socket that is bound to a specific transport service provider. Socket handling CB
CB.Socket.WSACleanup% Terminates use of the Winsock 2 DLL (Ws2_32.dll). Socket handling CB
CB.Socket.WSAStartup% Initiates use of the Winsock 2 DLL (Ws2_32.dll). Socket handling CB
CB.Sorting.Sort% Sort an array. Sorting support CB
CB.Sorting.SortTagged% Sort a tagged array. Sorting support CB
CB.SQL.Server.ConnectToData% Connect to SQL SERVER data. MS SQL Server support CB
CB.SQL.Server.ExecuteSqlQuery% Exequte a SQL query. MS SQL Server support CB
CB.SQL.Server.GetByIndex$ Retrieve a data from SQL. MS SQL Server support CB
CB.SQL.Server.GetFieldByIndex$ Retrieve a data from SQL by column index. MS SQL Server support CB
CB.SQL.Server.GetFieldByName$ Retrieve a data from SQL by column name. MS SQL Server support CB
CB.SQL.Server.GetFieldLenByIndex% Return the SQL columb lenght by index. MS SQL Server support CB
CB.SQL.Server.GetFieldLenghtByName% Return the SQL columb lenght by name. MS SQL Server support CB
CB.SQL.Server.MoveNext% Move to the next data row (record). MS SQL Server support CB
CB.SQL.Server.ReleaseDataConnect% Disconnect from a SQL SERVER data. MS SQL Server support CB
CB.SQL.Server.RowsCount% Return a count of selected rows from last query. MS SQL Server support CB
CB.String.CaseExchgString$ Exchange the letter case of string. String handling CB
CB.String.Enc$ Enclose a string inside a double quote. String handling CB
CB.String.LPad$ Left pad a string. String handling CB
CB.String.LTrim$ Left trim spaces from a string. String handling CB
CB.String.Replace$ Replace a pattern into a string with another string. String handling CB
CB.String.ReverseString$ Reverse a string. String handling CB
CB.String.RPad$ Right pad a string. String handling CB
CB.String.RTrim$ Right trim spaces from a string. String handling CB
CB.String.Space$ Create string of one or more spaces. String handling CB
CB.String.Trim$ Remove left and right spaces from a string. String handling CB
CDECL A C type function. Language keyword MB86
CDECL STRING A C type string. Language keyword MB86
CHAIN Load a new program or overlay. Process handling MB86
CHAIN INTEGER Specify user id for chain file. Process handling MB86
CHAIN STRING Specify path for chain file. Process handling MB86
CHR$ Generate a one byte string from an integer. String handling MB86
CIMATCH Case insensitive match. String handling MB86
CLOSE Close an open file. File handling MB86
CLS Clear the console screen. Console management MB86
COMMAND$ Return the command line from program start up. String handling MB86
COMMON Declare a variable or array to be common. Language keyword MB86
CONCHAR% Read an echo a character. Console management MB86
CONSOLE Direct output to the screen. Console management MB86
CONST Constants. Language keyword MB86
CONSTAT% Return if a key has been pressed. Keyboard handling MB86
CONTINUE Start next loop of FOR/NEXT, DO/NEXT, or WHILE/WEND. Language keyword MB86
COS Return the cosine of a number. Mathematics handling MB86
CREATE Create a file. File handling MB86
DATA Define data for use with READ. Language keyword MB86
DATE$ Return the system date. Date and time handling MB86
DEF Define a function. Language keyword MB86
DELETE Delete a file. File handling MB86
DETACH Detach a printer. Printer management MB86
DIM Dimension an array. Language keyword MB86
DO Do while a condition is true. Language keyword MB86
END Declare the end of a program. Language keyword MB86
ERASE Delete an array. Memory manipulation MB86
ERR Return last run-time error code. Error handling MB86
ERRL Return line number of last run-time error. Error handling MB86
ERRX Return extended error code. Error handling MB86
EXP Exponential function. Mathematics handling MB86
FEND Declare the end of a function. Language keyword MB86
FILEATTR Return file attributes (e.g. file handle). File handling MB86
FILECLOSE Close all open files. File handling MB86
FILEFLUSH Flush file buffers. File handling MB86
FLOAT Convert an integer to a real. Language keyword MB86
FMATCH Match without wild cards. String handling MB86
FOR Loop for a specified number of times. Language keyword MB86
FORCEERROR Force a run-time error. Error handling MB86
FRE Return the amount of free memory. Memory manipulation MB86
FREEFILE Return lowest file file id. File handling MB86
GET Get a byte from a file. File handling MB86
GOSUB Goto a subroutine. Language keyword MB86
GOTO Goto a label. Language keyword MB86
GRETURN Gosub return. Language keyword MB86
IF If statement. Language keyword MB86
IF END Branch to end of file. File handling MB86
INITIALIZE Reset removable media. File handling MB86
INKEY Input a key without echo. Keyboard handling MB86
INP Perform direct input from an I/0 port. Memory Manipulation MB86
INPUT Input data. Language keyword MB86
INPUT LINE Input a line from the console. Console management MB86
INT Return the integer portion of a real. Mathematics handling MB86
INT% Return integer portion of a real as an integer. Mathematics handling MB86
INTEGER Declare an identifier to be of integer type. Language keyword MB86
ISTR$ Convert an integer into a string. String manipulation MB86
IVAL Integer value of a string. String manipulation MB86
LCASE$ Convert a string to lower. String manipulation MB86
LEFT$ Return LEFT portion of a string. String manipulation MB86
LEN Return the length of a string. String manipulation MB86
LET Perform an assignment. Language keyword MB86
LFRE Return total free memory. Memory manipulation MB86
LOCK Lock a record. File handling MB86
LOG Calculate natural logarithm. Mathematics handling MB86
LONGINT Declare an identifier to be of long integer type. Language keyword MB86
LPRINTER Direct output stream to the printer. Printer management MB86
LSIZE Return the exact file size in bytes. File handling MB86
MATCH Match a string with wild cards. String manipulation MB86
MBADEOF Advance to end of file. File handling MB86
MBBINARY Open a file in binary mode. File handling MB86
MBCDOS Turn on Concurrent DOS printer support. Printer management MB86
MBCMD Pass a command line in a CHAIN statement. Process handling MB86
MBDIRECTION Return current lprinter/console status. Process handling MB86
MBEXEC Execute a program. Process handling MB86
MBFSTAT Set file status. File handling MB86
MBFSTRNG Fast string allocation. String manipulation MB86
MBMALCOUNT Number of times malloc has been called. Memory manipulation MB86
MBPRINT Redirect printer output. Printer management MB86
MBSPB Set Special Print Behavior. Printer management MB86
MBSRLIM Set real number limit. Mathematics handling MB86
MBTROFF Turn off line number trace. Language keyword MB86
MBTRON Turn on line number trace. Language keyword MB86
MBTRON2 Turn on line number trace with options. Language keyword MB86
MBVBUF Set virtual stack buffer. Memory manipulation MB86
MFRE Return the largest free block of memory. Memory manipulation MB86
MID$ Set/Get middle of a string. String manipulation MB86
MOD Return the modulus (remainder) of a division. Mathematics handling MB86
NEXT Next iteration of a FOR/NEXT loop. Language keyword MB86
ON ON GOTO or ON GOSUB. Language keyword MB86
ON ERROR GOTO Branch on an error condition. Error handling MB86
OPEN Open a file. File handling MB86
OUT Perform direct output to an I/O port. Memory manipulation MB86
PASCAL Declare a function to use pascal sequence. Language keyword MB86
PEEK Directly examine a byte of memory. Memory manipulation MB86
POKE Directly write to a byte of memory. Memory manipulation MB86
POS Get current column position. Console management MB86
PRINT Print data and variables. Console management MB86
PRINT # Print to a file. File handling MB86
PRINT STRING Print to a string. String manipulation MB86
PRINT USING Formatted output. String manipulation MB86
PRINT USING STRING Print using to a string. String manipulation MB86
PUT Put a byte in a file. File handling MB86
RANDOMIZE Seed the random number generator. Mathematics handling MB86
READ Read data from DATA statements. Language keyword MB86
READ # Read from a file. File handling MB86
READ # LINE Read a line from a file. File handling MB86
READONLY STRING Declare a function parameter readonly. Language keyword MB86
REAL Declare an identifier to be of real type. Language keyword MB86
REM A remark statement. Language keyword MB86
RENAME Rename a file File handling MB86
RESTORE Move data pointer to start of DATA. Language keyword MB86
RETURN Return control from a GOSUB or function. Language keyword MB86
RIGHT$ Return right most part of a string. String manipulation MB86
RND Generate a random number. Mathematics handling MB86
SADD Return a string address. String manipulation MB86
SELECT CASE Select from a list. Language keyword MB86
SGN Return the sign of a number. Mathematics handling MB86
SHIFT Arithmetic right shift. Mathematics handling MB86
SIN Calculate sine. Mathematics handling MB86
SIZE Return the file size in KB. File handling MB86
SQR Calculate the square root of a number. Mathematics handling MB86
STOP Terminate program execution. Language keyword MB86
STR$ Convert a real to a string. String manipulation MB86
STRING Declare an identifier to be of string type. Language keyword MB86
STRING$ Create multiple copies of a string. String manipulation MB86
TAB Move the cursor. Console management MB86
TAN Calculate tangent. Mathematics handling MB86
TIME$ Return the system time. Date and time handling MB86
UBOUND Return the upper bound of an array. Memory manipulation MB86
UCASE$ Convert a string to upper case. String handling MB86
UNLOCK Unlock a record. File handling MB86
VAL Real value of a string. String handling MB86
VARPTR Get a pointer to a variable or array. Memory manipulation MB86
WEND Terminate a WHILE loop. Language keyword MB86
WHILE Loop while a condition is true. Language keyword MB86