home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / ba01f.do < prev    next >
Text File  |  2006-10-19  |  3KB  |  101 lines

  1.  
  2. Title: PRINTER (LPT)
  3.  
  4.  
  5. Printing characters, or images, on the printer is considered output.  Output 
  6. is the function of converting digitized data into analog data.  Analog data is 
  7. data not intended to be stored for further processing. 
  8.  
  9.  
  10. CLOSEfilenumberlist
  11.  Closes the files OPEN'ed as filenumber. 
  12.  
  13.  
  14. LCOPY
  15.  Prints the text on the LCD screen onto the printer.  LCOPY ignores non-text 
  16.  data. 
  17.  
  18.  
  19. LLISTlinenumberrange
  20.  Lists the linenumberrange of the current program onto the printer. 
  21.  
  22.  
  23. LPOS(dummynumericexpression)
  24.  Returns the current position of the printer print head within the printer 
  25.  buffer. 
  26.  
  27.  
  28. LPRINTexpressionlist
  29.  Prints the data in expressionlist onto the printer, starting at the left 
  30.  most end of the line. 
  31.  
  32.  
  33. LPRINTUSING"format";expressionlist
  34.  Prints the data in expression list using the specified format.  Format 
  35.  consists of one of more of the following "field specifiers": 
  36.  
  37. Prints first string character.
  38.  LPRINTUSING"!";"Tandy"
  39.  
  40. Prints 2+n characters from a string.
  41.  LPRINTUSING"\\";"Tandy"
  42.  
  43. Print one digit for each #.
  44.  LPRINTUSING"#####";5
  45.  
  46. Inserts the algebraic sign of the number.
  47.  LPRINTUSING"+####";-13
  48.  
  49. Inserts a minus sign either at the beginning or end of negative numbers.  
  50.  LPRINTUSING"-####";14 
  51.  
  52. Converts leading blanks to leading asterisk blanks.
  53.  LPRINTUSING"**#####";145 
  54.  
  55. Inserts a dollar sign to the immediate left of the formatted number.  
  56.  LPRINTUSING"$$#####";450 
  57.  
  58. Changes leading spaces to asterisks except for the space to the immediate left 
  59. of the number, where is inserts a dollar sign. 
  60.  LPRINTUSING"**$###";12 
  61.  
  62. Inserts a decimal point.
  63.  LPRINTUSING"#####.##";14.5
  64.  
  65. Inserts a comma before every three printed digits to the left of the decimal 
  66. point. 
  67.  LPRINTUSING"#########,";14432
  68.  
  69. Prints the number in exponential format.
  70.  LPRINTUSING"###.##^^^^";342200 
  71.  
  72.  
  73. MAXFILES
  74.  Stores the current maximum number of files.  You may access MAXFILES line any 
  75.  numeric variable. 
  76.  
  77.  
  78. OPEN"LPT:"FOROUTPUTASfilenumber
  79.  Allocates a buffer for a printer file and assigns it the given filenumber. 
  80.  
  81.  
  82. PRINT#filenumber,expressionlist
  83.  Prints the values of expressionlist to the printer file OPEN'ed as 
  84.  filenumber. 
  85.  
  86.  
  87. PRINT#filenumber,USING"format";expressionlist
  88.  Formats the data in expressionlist and sends it to the printer file OPEN'ed 
  89.  as filenumber.  See LPRINTUSING for an explanation of format. 
  90.  
  91.  
  92. SAVE"LPT:"
  93.  Lists the current BASIC program onto the printer. 
  94.  
  95.  
  96. TAB(numericexpression)
  97.  Skips numeric expression spaces before printing the next data item.  
  98.  Numericexpression ranges between 0 and 255. 
  99.  
  100. <EOF>
  101.