Can I view a dataset's contents from the debugger?

M

MattB

It looks like I can't (VS.Net 2003) but I want to be sure I'm not
overlooking something. Anybody got a good trick to do this? I'm getting
some things going on in a dataset and having a hard time figuring out
when this happens. Being able to watch a dataset would be a big help.
Thanks!
 
Y

yer darn tootin

Or use the command window during debug. Add a breakpoint once the
dataset has data, then play around with ? commands ( intellisense in a
great help here to see what you can look at )

eg
?ds.Tables(0).Rows(0) ' row 1 of table 1 in a dataset called ds
?ds.tables(0).Row(0)("columnname") ' contents of table 1's first row in
column "columnname"
 
E

Eliyahu Goldin

Sure you can, why not? A dataset consists of tables. In the debugger
navigate to the required table, then to its rows etc. What is your specific
problem?

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top