home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
club100
/
ref
/
ba01f.do
< prev
next >
Wrap
Text File
|
2006-10-19
|
3KB
|
101 lines
Title: PRINTER (LPT)
Printing characters, or images, on the printer is considered output. Output
is the function of converting digitized data into analog data. Analog data is
data not intended to be stored for further processing.
CLOSEfilenumberlist
Closes the files OPEN'ed as filenumber.
LCOPY
Prints the text on the LCD screen onto the printer. LCOPY ignores non-text
data.
LLISTlinenumberrange
Lists the linenumberrange of the current program onto the printer.
LPOS(dummynumericexpression)
Returns the current position of the printer print head within the printer
buffer.
LPRINTexpressionlist
Prints the data in expressionlist onto the printer, starting at the left
most end of the line.
LPRINTUSING"format";expressionlist
Prints the data in expression list using the specified format. Format
consists of one of more of the following "field specifiers":
Prints first string character.
LPRINTUSING"!";"Tandy"
Prints 2+n characters from a string.
LPRINTUSING"\\";"Tandy"
Print one digit for each #.
LPRINTUSING"#####";5
Inserts the algebraic sign of the number.
LPRINTUSING"+####";-13
Inserts a minus sign either at the beginning or end of negative numbers.
LPRINTUSING"-####";14
Converts leading blanks to leading asterisk blanks.
LPRINTUSING"**#####";145
Inserts a dollar sign to the immediate left of the formatted number.
LPRINTUSING"$$#####";450
Changes leading spaces to asterisks except for the space to the immediate left
of the number, where is inserts a dollar sign.
LPRINTUSING"**$###";12
Inserts a decimal point.
LPRINTUSING"#####.##";14.5
Inserts a comma before every three printed digits to the left of the decimal
point.
LPRINTUSING"#########,";14432
Prints the number in exponential format.
LPRINTUSING"###.##^^^^";342200
MAXFILES
Stores the current maximum number of files. You may access MAXFILES line any
numeric variable.
OPEN"LPT:"FOROUTPUTASfilenumber
Allocates a buffer for a printer file and assigns it the given filenumber.
PRINT#filenumber,expressionlist
Prints the values of expressionlist to the printer file OPEN'ed as
filenumber.
PRINT#filenumber,USING"format";expressionlist
Formats the data in expressionlist and sends it to the printer file OPEN'ed
as filenumber. See LPRINTUSING for an explanation of format.
SAVE"LPT:"
Lists the current BASIC program onto the printer.
TAB(numericexpression)
Skips numeric expression spaces before printing the next data item.
Numericexpression ranges between 0 and 255.
<EOF>