advr.hlp (Topic list)
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.
POS Function, CSRLIN Function, and LOCATE Statement Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 POS(n%)
 CSRLIN
 LOCATE [row%] [,[column%] [,[cursor%] [,start% [,stop%]]]]
 
 Usage Notes
   ■ The POS and CSRLIN functions and the LOCATE statement are not allowed
     with forms. Any reference to POS, CSRLIN, or LOCATE when forms are
     showing causes Visual Basic to generate an error. Use the HIDE method
     to hide any visible forms or controls. See: HIDE Method
 
   ■ If the screen cursor is in the leftmost column, POS returns a value of
     1; if the screen cursor is in the top row, CSRLIN returns a value of 1.
 
   ■ You can omit any argument from the LOCATE statement except stop%; if
     stop% is specified, start% also must be specified. When you omit row% or
     column%, LOCATE leaves the cursor at the row or column where it was
     moved by the most recently executed input or output statement (such
     as LOCATE, PRINT, or INPUT). When you omit other arguments, Visual Basic
     assumes the previous value for the argument.
 
   ■ The start and stop lines are the CRT scan lines specifying which pixels
     on the screen are lit; a wider range between the start and stop lines
     produces a taller cursor (occupies an entire character block).
 
   ■ When start% is greater than stop%, LOCATE produces a two-part cursor:
     • If the start line is given but the stop line is omitted, stop% assumes
       the same value as start%.
     • A value of 8 for both start% and stop% produces the underline cursor.
     • The maximum cursor size is determined by the character block size
       of the screen mode in use.
     • Setting start% greater than stop% displays a full-height cursor on
       VGA-equipped systems.