If you hover over that, the IDE has to run the code for that property to show you the value. It will not simply show you the value returned previously.
If Not Letter.IfTooManyGoes Then
IfTooManyGoes
is a property, the code for that property has to be run to show you the value (assuming you have the default 'Auto data tips' setting checked). It shouldn't run anything that is not part of, or called by, that property code. However, using MsgBox
or Inputbox
statements can cause a focus shift which works as if you hovered over the property again (and again, and again)Public Property Get IfTooManyGoes() As Boolean
If LetterGuessed = "" Then StartGuess
IfTooManyGoes = (LetterGuessed <> "")
End Property
I've now copied it and tested it - its new behaviour to me and I can see exactly what Rory is talking about. When you hover over the 'IfTooManyGoes value is hovered over, the editor needs to run code to obtain the value. It therefore executes the code below within which is a call to StartGuess and so the whole process starts again. When a LetterGuessed is returned then I'd expect you to be returned to the break point and the editor will show you the new value. (Not completely sure thats true, but from my current learning thats what I'd expect).
Rich (BB code):Public Property Get IfTooManyGoes() As Boolean If LetterGuessed = "" Then StartGuess IfTooManyGoes = (LetterGuessed <> "") End Property
HTH