Changes

Jump to: navigation, search

Locomotive BASIC

850 bytes added, 16:29, 2 January 2019
/* Functions */
</pre>
==== <code>COPYCHR$ (#ststream)</code> ====
: FUNCTION: COPies a CHaRacter from the current position in the stream (which MUST be specified). The below program copies a character from location 1,1 (top left), and reproduces it at location 1,20.
==== <code>DEC$(n, format)</code> ====
: Retruns the decimal FUNCTIION: Returns a DECimal string representation of the <numeric expression> (n), according to using the specified <format (see template> to control the print format of the resulting string.: The format template may contain ONLY the characters: : + - $ £ * # , . ^ : The use of these 'format field specifiers' is described under the keyword PRINT USING. : Associated keyword: BIN$, HEX$, PRINT USING, STR$ : Example:<pre>PRINT DEC$(10^7,"££########,.##") £10,000,000.00</pre>
==== <code>DERR</code> ====
: Gives FUNCTION: Reports the most recent last error code number returned by [[Amsdos]]the disc filing system.The value of DERR may be used to ascertain the particular Disc ERRor that occurred. See the listing of error messages below. : Associated keywords: ERL, ERR, ERROR, ON ERROR GOTO, RESUME : Example:<pre>LOAD "xyz.abc" XYZ .ABC not foundReadyPRINT DERR 146</pre> : Table of error codes:<pre>1 Unexpected NEXT: A NEXT command has been encountered while not in a FOR loop, or the control variable in the NEXT command does not match that in the FOR</pre>
==== <code>EOF</code> ====
205
edits