Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>wstep()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSTEP()
 Determines the step width of interactive window movement
------------------------------------------------------------------------------
 Syntax

     WSTEP(<nVertical>,<nHorizontal>) --> nResult

 Arguments

     <nVertical>  Designates the number of rows the window steps when
     moved interactively.

     <nHorizontal>  Designates the number of columns the window steps
     when moved interactively.

 Returns

     If an error occurs, WSTEP() returns -1.   If no errors occur, it returns
     0.

 Description

     WSTEP() allows you to set the number of steps a window moves with each
     key stroke.

     Exact Positioning

     Normally, in the case of a step size greater than (1,1), you would not
     be able to select every screen position.  However, unique interactive
     mode behavior lets you select every screen position anyway!  Pressing
     two opposing arrow keys, one immediately after the other, causes a step
     size of 1 to become effective for that axis.  This step size allows
     precise positioning of the window!

 Note

     .  This function only operates when all windows are closed.  The
        preset values are 2 rows for the vertical steps and 5 columns for the
        horizontal steps.  The maximum values are 6 rows for the vertical
        steps and 20 rows for the horizontal steps.  If a step value exceeds
        the maximum value, then the step value is set to the maximum correct
        value.

 Example

     When you use the cursor keys, the selected window is moved 1 row
     vertically and 3 rows horizontally:

     WSTEP(1, 3)


See Also: WACLOSE() WSETMOVE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson