I don't claim to be any sort of expert or guru, and this is my first time posting, so thank you all in advance, I have found this forum to be a helpful
My question is this: how do I use the WaitForString function in a class file? I have to assume it is close to the waitfor cursor which I have like this:
Public Function WaitForCursor(ByVal lRow As Long, _
ByVal lCol As Long) As Boolean
sTemp = moExtra.Screen.WaitForCursor(lRow, lCol)
End Function
So what I have tried is this :
Public Function WaitForText(ByVal sText As String, _
ByVal lRow As Long, _
ByVal lCol As Long) As Boolean
sTemp = moExtra.Screen.WaitForString(sText, lRow, lCol)
End Function
but when i use it in the form like this:
.WaitForText ("the", 1,2)
vb gives me an error "expected:="
any help on this would be much appreciated!
My question is this: how do I use the WaitForString function in a class file? I have to assume it is close to the waitfor cursor which I have like this:
Public Function WaitForCursor(ByVal lRow As Long, _
ByVal lCol As Long) As Boolean
sTemp = moExtra.Screen.WaitForCursor(lRow, lCol)
End Function
So what I have tried is this :
Public Function WaitForText(ByVal sText As String, _
ByVal lRow As Long, _
ByVal lCol As Long) As Boolean
sTemp = moExtra.Screen.WaitForString(sText, lRow, lCol)
End Function
but when i use it in the form like this:
.WaitForText ("the", 1,2)
vb gives me an error "expected:="
any help on this would be much appreciated!