This object oriented stuff is, strangely, starting to make
sense. (coming from a conventional programming background)
Have read the Mark Thorp Tech Trax tutorials and they have
cleared up several things. Greg Chapman's Debugging article is
helpful too. However, in general, I can't get used to the way
things are explained when it comes to VB. I see examples, but not
basic explanations.
Help seems pretty malodorous as well. I am used to
a "programmers reference" document which gives the commands and
explains the operands.
My questions
1- For:
Debug.Assert BoolVar
Help says "Conditionally suspends execution at the line on which the
method appears."
Conditionally ? What condition? What is the BoolVar for?
It appears, from Greg's code, but not the obtuse Help code, that
execution stops (Debug is asserted) when BoolVar is false, but it
doesn't say that. Is this correct? Sure seems a strange default to
pass a test when argument is _false_.
Shouldn't Help say: "When BoolVar (or argument) is false, suspends
execution at the line on which the method appears."
Greg's code:
Sub TestingImmediateAssert()
Dim boolAssertion
boolAssertion = True
For I = 0 To 10
If I > 5 Then
boolAssertion = False
End If
Debug.Assert boolAssertion
Next I
End Sub
2- Hovering over "Debug." Shows only two possible choices (methods),
so that's all that Debug can do (print and halt-on-false), right?
3- Lots more in time….
BTW, I wasn't using Msg Boxes, I just put things into a sheet cell.
P.S. I'm using Excel to control my ham radio via the serial port. I
found a sheet on the web that did it and am modifying it / learning.