Another Little Tip!

  • Thread starter Thread starter Tim O'Donnell
  • Start date Start date
T

Tim O'Donnell

Most of you hardcore developers may already know this, but I don't
think everyone does so here goes...

When debugging code we all used to placing our mouse over an object or
variable to reveal the assigned value at runtime. If we do this in
VB.NET to a statement that is comprised of several objects like the
one below, where only ever given the assign value of each object;

... dtbMyDataTable.Rows(I).RowState

---------------------------------------------------------------------------
MOUSE OVER RESULTS

"dtbMyDataTable = {System.Data.DataTable}"

or

"Public Overload ReadOnly Property RowState() As
Systems.Data.DataRowState"

e.t.c.
---------------------------------------------------------------------------

Not much use to us if where trying to find the current RowState for
row(I), but if we HIGHLIGHT the entire statement
[dtbMyDataTable.Rows(I).RowState] and then move the mouse over the
HIGHLIGHTED area, as if my magic the row state will be revealed to us.

The debugger will detail the assigned value of what ever object(s)
that is/are highlighted.

Saves you having to set up a QuickWatch for every little thing!!

Have Fun and Happy Coding!!

Regards,

Timbo
 
Back
Top