HTBasic Help
×
Menu
Index

WHERE

Returns the logical pen position.
 
 WHERE x-variable, y-variable [,string-name$]
 
Usage:
WHERE X,Y
WHERE Time,Temp,Status$
Example: WHERE.BAS
Description:
The WHERE statement returns the current logical pen position in the x and y numeric variables and pen status information in the optional string variable.
The optional string variable must be dimensioned to a length of at least three bytes. The three string characters are interpreted as follows:                
Byte
Meaning
1
Pen Status - Up/Down status of the Pen. If the character is a "1" then pen is down; if it is a "0" then the pen is up
2
Comma delimiter character.
3
Clip Indicator - If the character is a "0", then the point is outside the P1, P2 limits. If a "1", the point is inside the P1, P2 limits, but outside the viewport. If a "2" then it's inside the viewport.
See Also: