[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
CALCPOS()
To get/set the calculator initial screen position.
------------------------------------------------------------------------------
Syntax
CALCPOS( [<aPosition>] ) -> aOldPosition
Arguments
<aPosition> is an optional array parameter containing {<nRow>,<nCol>}.
If you specify an empty array ({}), CALCPOS() will default the
calculator position to the following:
Defaults to {} (automatically setting the position to a row of
MaxRow()-12, and the column to 0 if your cursor is >=40
or to MaxCol()-24 if your cursor is <40).
Returns
CALCPOS() returns the current CALCPOS() array setting of {<nRow>,<nCol>}.
Description
You may use CALCPOS() to get/set the calculator initial screen
position.
Regarding the parameter <aPosition>:
. If it is an empty array (the default), it will set
the row to MaxRow()-12, and the column to 0 if your current
screen cursor position is greater than or equal to 40,
or to MaxCol()-24 if your cursor is less than 40.
( i.e. CALCPOS({}) )
Examples
** Example 1 - array with positions
//Positions the initial display of
//the calculator at MaxRow()-13,4.
aOldPos := CALCPOS( MaxRow()-13, 4 )
Calculator()
** Example 2 - empty array
aOldPos := CALCPOS( {} )
Calculator()
Defaults the row to MaxRow()-12 and the col to
If( Col() > (MaxCol()+1)/2, 0, MaxCol()-24 )
Files: CALC.LIB
Author: Touchstone Business Creations CompuServe ID: 73670,2561
28613 River Glen Ct. #1
Menifee, CA 92584-8987 USA
(909) 679-3364
Owner : (c) Copyright, 1991,92,93 Touchstone Business Creations
See Also:
CALCINIT()
CALCUDF()
CALCULATOR()
CALCREG()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson