BeforeDeleteConnection

Row(), Col(), PRow(), PCol()

Back in FoxBase days, even early FoxPro days, we used these functions a lot. We can't remember the last time we used them, though. They return the cursor position on the screen and on the printer, respectively.

Usage

nCurScreenRow = ROW() nCurScreenCol = COL() nCurPrintRow = PROW() nCurPrintCol = PCOL()
You can substitute $ for either ROW() or COL() in @ .. GET and @ .. SAY commands to specify the current location. ROW() and COL() do not respect the settings of ScaleMode, always reporting the row and column coordinates in foxels.

Example

@ROW(), COL()+1 SAY "Here's some information"

See Also

@...Get, @...Say, CurrentX, CurrentY


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net