p

Originally Posted by
Bob Phillips
If Not myvariable = somevalue Then
for some reason I decided some time ago that the condition is equality, so only test for equal and use Not if you want to know when it isn't.
(Very) obviously pesonal style/choice, but I usually opt for readability (probably my COBOL background)
So I'd probably do something like this since it's (to me) more readable even if it's longer
n = -100
GiveUp = False
While Not ReadyToGo And Not GiveUp Then
Call GetReadyToGo
Loop
....
....
....
Function ReadyToGo() as Boolean
ReadyToGo = False
if n < 1000 then
GiveUp = True
Exit Function
ElseIf n < 1 Then
n = n+1
Else
ReadyToGo = True
End If
End Function