Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LINE Statement
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Draws a line or rectangle on the screen; not available when forms are
showing.
LINE [[STEP](x1!,y1!)] - [STEP](x2!,y2!) [,[color%] [,[B | BF] [,style%]]]
■ STEP Specifies that coordinates are relative to the current
graphics cursor position
■ (x1!,y1!), Screen coordinates of the start of the line and the end
(x2!,y2!) of the line
■ color% Color attribute that sets the line or rectangle color
■ B Draws a rectangle instead of a line; uses (x1!,y1!) and
(x2!,y2!) as its diagonally opposite corners
■ BF Draws a filled box
■ style% 16-bit value whose bits set whether or not pixels are
drawn; use to draw dashed or dotted lines
See Also
◄Color Attributes and Values (SCREEN)► ◄Graphics Command Summary►
◄LINE INPUT Statement► ◄LINE INPUT # Statement►