The BASIC Wizard's Library Quick Reference Evaluate Expression$, Result!, ErrCode% Evaluates a numeric expression. FBlockRead Handle%, Segm%, Ofs%, Bytes% Reads a block from the specified file. FBlockWrite Handle%, Segm%, Ofs%, Bytes% Writes a block from the specified file. FClose Handle% Closes the specified file. FDate Handle%, DateSt$ Sets the date stamp of the specified file. FDone Terminates the file handler. FEOF% (Handle%) Returns whether the end of the specified file has been reached. FError Handle%, ErrCode% Sets the error condition associated with the specified file. FFlush Handle% Flushes the specified file to disk to insure data integrity. FGetDate$ (Handle%) Gets the date stamp of the specified file. FGetError% (Handle%) Reports any error condition associated with the specified file. FGetLocate& (Handle%) Gets the position of the file read/write pointer of the specified file. FGetSize& (Handle%) Gets the size (in bytes) of the specified file. FGetTime$ (Handle%) Gets the time stamp of the specified file. FInit Handles%, ErrCode% Initializes the file handler. For now, Handles% must be zero. FLocate Handle%, Posn& Sets the position of the read/write pointer for the specified file. FOpen File$, FMode$, BufferLen%, Handle%, ErrCode% Opens the specified file for access. FMode$ may contain A,C,R,T,W. FRead$ (Handle%, Bytes%) Reads a string from the specified file. FReadLn$ (Handle%) Reads a string terminated by a from the specified (text mode) file. FSDone Terminates the far string handler. FSGet$ (Handle%) Gets the specified far string. FSInit UseEMS% Initializes the far string handler. For now, UseEMS% must be zero. FSSet Handle%, St$ Sets the specified far string. FTime Handle%, TimeSt$ Sets the time stamp of the specified file. FWrite Handle%, St$ Writes a string to the specified file. FWriteLn Handle%, St$ Writes a string followed by a to the specified file. GetDisplay Adapter%, Mono% Gets information about the active display adapter. GetEMS% Gets the amount of EMS (expanded memory) available in Kbytes. HGCls Clears the screen and homes the cursor in Hercules graphics mode. HGColor Fore%, Back% Sets the colors for Hercules graphics mode (colors are 0-1). HGGetColor Fore%, Back% Gets the colors for Hercules graphics mode (colors are 0-1). HGGetLocate Row%, Column% Gets the cursor position for Hercules graphics mode (row 1-43, col 1-90). HGLine Col1%, Row1%, Col2%, Row2%, Colour% Draws a line in Hercules graphics mode (col 0-719, row 0-347, color 0-1). HGLocate Row%, Column% Sets the cursor position for Hercules graphics mode (row 1-43, col 1-90). HGMode SMode% Controls the screen mode for a Hercules card (0 text, 1 graphics). HGPlot Column%, Row%, Colour% Plots a point in Hercules graphics mode (col 0-719, row 0-347, color 0-1). HGWrite St$ Displays a string in Hercules graphics mode. HGWriteLn St$ Displays a string and moves to the next line in Hercules graphics mode. MAllocate Bytes&, Ptr&, ErrCode% Allocates the specified amount of memory, returning Ptr& or ErrCode%. MDeallocate Ptr&, ErrCode% Deallocates the block of memory specified by Ptr&. MFill Ptr&, Value%, Bytes& Fills the memory area starting at Ptr& with Value% for a number of Bytes&. MGetChr$ (Ptr&) Gets a character from a location specified by Ptr&. MJoinPtr& (TSeg%, TOfs%) Converts a segment and an offset into a pointer. MMove FromPtr&, ToPtr&, Bytes& Moves/copies from one area of memory to another. MPutChr Ptr&, Ch$ Puts a character into a location specified by Ptr&. MSplitPtr Ptr&, TSeg%, TOfs% Converts a pointer to a segment and offset. StartXmodemSend Handle%, Protocol$, Baud$, MaxRec%, Record%, EstTime$, ErrCode% Initiates transfer of a file using the Xmodem file transfer protocol. TCCarrier% Gets whether a carrier is detected (0 no, -1 yes). TCDone Terminates the telecommunications handler. TCDTR State% Sets the state of the DTR (0 off, -1 on). TCFlushIn Flushes (clears) the receive buffer. TCFlushOut Flushes (clears) the transmit buffer. TCInit Port%, InSize%, OutSize%, ErrCode% Initializes the telecommunications handler. TCInkey$ Gets a character from the input buffer ("" if none is waiting). TCInStat% Gets the number of bytes waiting in the input (receive) buffer. TCOutStat% Gets the number of bytes waiting in the output (transmit) buffer. TCParms Parity$, WordLength%, StopBits% Sets telecommunications parameters. TCSpeed Bps& Sets the speed of telecommunications (bits per second or "baud") TCWrite St$ Puts a string into the transmit buffer. TCWriteLn St$ Puts a string with a into the transmit buffer. WClear Handle% Clears a virtual screen (like CLS). WClose Handle% Closes a virtual screen. You may not close the background (zero) screen. WCollapse Handle% Makes a window disappear using a "collapse" effect. WColor Handle%, Fore%, Back% Selects the default text colors for a virtual screen (like COLOR). WCopy FromHandle%, ToHandle% Copies one virtual screen to another of the same size. WCursor Handle%, CSize% Sets the cursor size for a window (zero makes cursor invisible). WDelChr Handle% Deletes the character at the cursor of a virtual screen. WDelLine Handle% Deletes the row at the cursor of a virtual screen. WDone Closes all virtual screens and terminates the Virtual Windowing System. WExplode Handle% Makes a window appear using an "explosion" effect. WFixColor Convert% Specifies whether to convert colors to be visible on a monochrome display. WFrame Handle%, Frame%, Fore%, Back% Selects a frame type and frame colors for a window. WGetColor Handle%, Fore%, Back% Gets the default text colors for a virtual screen. WGetCursor Handle%, CSize% Gets the cursor size for a window (if zero, the cursor is off). WGetFrame Handle%, Frame%, Fore%, Back% Gets the frame type and frame colors of a window. WGetLocate Handle%, Row%, Column% Gets the cursor position for a virtual screen. WGetPlace Handle%, Row%, Column% Gets the display location of the upper left corner of a window. WGetSize Handle%, Rows%, Columns% Gets the size of a window. WGetTitle Handle%, Title$, TLen%, Fore%, Back% Gets the title and title colors of a window. WGetTop Handle% Gets which window is on top. WGetUFrame Frame%, FrameInfo$ Gets the specification for a user-defined frame type (5-9). WGetView Handle%, Row%, Column% Gets the upper left corner of where a window starts in a virtual screen. WGetVSize Handle%, Rows%, Columns% Gets the size of a virtual screen. WInit Rows%, Columns%, ErrCode% Initializes the Virtual Windowing System and opens the background v. screen. WInput Handle%, Valid$, ExitCode$, ExtExitCode$, MaxLength%, St$, ExitKey$ Requests input from the user at the cursor of a virtual screen. WInsChr Handle% Inserts a space at the cursor of a virtual screen. WInsLine Handle% Inserts a blank row at the cursor of a virtual screen. WLocate Handle%, Row%, Column% Sets the cursor position of a virtual screen. WOpen Rows%, Columns%, SRow1%, SCol1%, SRow2%, SCol2%, Handle%, ErrCode% Opens a new virtual screen and corresponding window. WPlace Handle%, Row%, Column% Sets the new upper left column of a window on the display. WSize Handle%, Rows%, Columns% Sets a new size for a window (must not be larger than the virtual screen). WTitle Handle%, Title$, Fore%, Back% Selects a title and title colors for a window. WTop Handle% Places a specified window on top. WUpdate Updates the display from the shadow screen. WUserFrame Frame%, FrameInfo$ Sets the specification for a user-defined frame type (5-9). WView Handle%, Row%, Column% Sets a new starting point of a window within a virtual screen. WWrite Handle%, St$ Prints a string to a virtual screen (like PRINT St$;). WWriteLn Handle%, St$ Prints a string with a to a virtual screen (like PRINT St$). XmodemSend Handle%, Protocol$, MaxRec%, Record%, ErrCount%, ErrCode% Continues transfer of a file using the Xmodem file transfer protocol.