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.
PRESET, PSET Statements Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
PRESET [STEP] (x!,y!) [,color%]
PSET [STEP] (x!,y!) [,color%]
Usage Notes
■ References to PRESET or PSET are not allowed with forms and cause
Visual Basic to generate the error message, "Invalid when forms are
showing." Use the HIDE method to hide any visible forms or controls
before executing either of these statements. See: ◄HIDE Method►
■ The available color attributes for PRESET and PSET depend on your
graphics adapter and the screen mode set by the most recent SCREEN
statement. See: ◄Adapters and Displays► ◄SCREEN Statement►
■ Coordinate values for PRESET and PSET depend on the graphics adapter,
screen mode, and most recent VIEW and WINDOW statements.
See: ◄VIEW Statement► ◄WINDOW Statement►
■ The STEP keyword indicates that the x and y coordinates are relative,
not absolute. The coordinates are treated as distances from the most
recent graphics cursor location, not distances from the (0,0) screen
coordinate. For example, if the most recent graphics cursor location
were (10,10), PRESET STEP (10,5) would draw a point at (20,15).
■ PRESET works exactly like PSET, except:
• If color% is not specified for a PSET statement, the current
foreground color is the default.
• If color% is not specified for a PRESET statement, the current
background color is the default.
■ If the coordinate is outside the current viewport, no action is taken,
and no error message is generated.