13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WIDTH statementFunctionSyntaxRemarksWIDTH sets the logical line size.WIDTH [{device name I Ifilenum}.] sizesize is an integer expression from 0 to 255 that specifies the newlogical line size.device name is a string expression optionally describing thedevice whose WIDTH should be set. Options for device areSCRN:, LPT1:, LPT2:, LPT3:, COM 1:, and COM2:. If omitted,WIDTH refers to the display (SCRN:). filenum is an integerexpression representing a file opened for output.In general, WIDTH determines how many characters can be"printed- to a given device before a carriage return is output,although its exact effect varies according to the device it is appliedto.WIDTH size or WIDTH "SCRN: "', size sets the screen width.The only valid values for size are 40 and 80, and 40 is invalid for amonochrome display.If the screen is in a graphics mode, changing the width has theeffect of changing the graphics mode. For example, if the currentmode is high resolution, then WIDTH 40 turns on medium resohitiongraphics.WIDTH device, size determines the logical line size of the specineddevice when it is next opened. If the device has already beenopened, its width setting is not changed.Note: LPRINT implicitly OPENs the printer; thus, the effect ofWIDTH "LPT1:"', size is seen immediately.WIDTH #filenum, size changes the width of the device representedby filenum immediately. The only devices for which thisstatement means anything are LPT1:, LPT2:, LPT3:, COM 1:, andCOM2:.The WIDTH of each printer defaults to 80. Specifying aWIDTH of 255 effectively disables logical line width counting sothat no carriage returns are ever inserted.376<strong>Turbo</strong> <strong>Basic</strong> Owner's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!