Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help using WaitForCursor in Class File

Status
Not open for further replies.

NakedZero

Technical User
Oct 27, 2004
21
US
I use SetCursor like this:

Public Function SetCursor(ByVal lRow As Long, _
ByVal lCol As Long) As Boolean

stemp = moExtra.Screen.MoveTo(lRow, lCol)
End Function

SetCursor works great! but when I use the following

WaitForCursor as follows:

Public Function WaitForCursor(ByVal lRow As Long, _
ByVal lCol As Long) As Boolean

stemp = moExtra.Screen.WaitForCursor(lRow, lCol)

End Function

It just seems to ignore the function. Example:
Public Function Test ()
SetCursor 7, 14
WaitForCursor 7, 14
TransmitText sFName
End Function

I have code that runs before the code above, and when it gets to this snippit it seems to completely ignore the WaitForCursor. I step through it and it goes to the function, but it is as if it is not coded correctly because it doesn't seem to wait. Example, it trys to transmit the sFName somwhere else because it didn't wait for the cursor first. Can anyone help please?

Thanks!
 
I have tried the WaitForCursor method in the past and found that it doesn't work as documented. I'm not sure what it does, actually. It seems to return true instantly every time.

-calculus
 
I have used it in our old host system and it waited for the cursor to be at a specific spot on the screen before it continued to the next line of code. But it obviously doesn't seem to work as described above. I am fairly certain that the function needs to be rewritten, it may be incorrect as far as I know. Thanks for the reply!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top