|
Summary
Retrieve current cursor location.
Syntax
Boolean CurrentLocation ()
Description
To retrieve the current cursor position, call the CurrentLocation method. If the action was successful, the Row and Column properties will contain the current row and column position of the
cursor. If not, the OnError event will be fired before the next line of code is reached.
The CurrentLocation method takes no parameters and returns a boolean. If the current cursor position can be successfully retrieved, then the method returns True; otherwise, it returns False. The
application should ensure that the method was successfully executed by checking the return value.
Calling this method is equivalent to setting the VtAction property to VT_CURRENT_LOCATION. This method can only be called after the VT220 emulation window has been created and initialized.
Example
Result = VT220Client.CurrentLocation () If Result = False Then MsgBox "Unable to retrieve current cursor position", 64, "Sample Program" End
If
|