HTBasic Help
×
Menu
Index

WHERE Statement

 
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. For example:
WHERE X,Y,Status$
The Status$ string contains three bytes with the following information:
         
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.