Good day!
ugh, I'm pulling my hair out on this one.
Instead of quitting after 10 tries, my application just freezes, and I have to give it the 3 finger salute. Please take a look at my code.
Why dosen't it quit after 10 tries?
Any ideas? It would be much appreciated!
________________________________________
Buddha. Dharma. Sangha.
ugh, I'm pulling my hair out on this one.
Instead of quitting after 10 tries, my application just freezes, and I have to give it the 3 finger salute. Please take a look at my code.
Why dosen't it quit after 10 tries?
Code:
Public Sub goNext(scrCheck As String, amtToCheck, Optional colPos)
Dim myCounter As Integer
nextScreenValid = ""
goNextScreen = ""
myCounter = 1
Do
nextScreenValid = scrCheck
If IsMissing(colPos) Then
goNextScreen = Sess0.Screen.GetString(1, 1, amtToCheck)
Else
goNextScreen = Sess0.Screen.GetString(1, colPos, amtToCheck)
End If
myCounter = myCounter + 1
Loop While goNextScreen <> nextScreenValid Or myCounter = 10
End Sub
Any ideas? It would be much appreciated!
________________________________________
