Difference between revisions of "COL()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to return screen column position | Function to return screen column position | ||
Line 29: | Line 25: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 16:15, 27 November 2009
Purpose
Function to return screen column position
Syntax
COL()
See Also
PCOL(), PROW(), ROW(), SCOLS(), SET DEVICE, SROWS()
Description
The COL() function returns the current column position of the cursor on the screen. The current cursor position is updated whenever you issue the @...SAY...GET or MENU TO commands. Normal output using other commands does not have an effect. The main use of the COL() function is to calculate relative cursor addressing when designing forms and menus. If you have issued the SET DEVICE TO PRINT command, the printer column position is updated rather than the screen column position, see PCOL() for details.
Example
@1,1 do while col() < 20 @1, col()+1 say "-" enddo
Products
Recital