Sys(1270)
This function gives you a reference to the object located at either the mouse position or a specified position. The way you specify positions, however, is fairly ridiculous.
Usage |
uObject = SYS( 1270 [, nXCoord, nYCoord ] ) |
Parameter |
Value |
Meaning |
nXCoord, nYCoord |
Numeric |
The position for which you want an object reference. |
Omitted |
Return a reference to the object under the mouse pointer. |
|
uObject |
Object |
A reference to the object at the current or specified position. |
.F. |
No object was found at the current or specified position. |
When you pass the optional coordinates, they're measured from the upper-left corner of your screen. That's right, not the VFP main window, but the screen itself. So, if you move VFP, you have to change the parameters to this function. We can't think of any reason why this function is interested in the outside world since it can't give us information about what's out there. |
Example |
oCurrent = SYS(1270) * A lot of people set up something like this to make debugging * easier. The second line is needed so forms will close. ON KEY LABEL F11 o = SYS(1270) ON KEY LABEL F12 o = .null. |
See Also |