473,651 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I use the Locals Window to find a value in a Dataset????

How in the heck do I traverse this rediculously long object model to find
out if I actually updated a particular value in my dataset???
Jul 21 '05 #1
6 2102
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO******** ******@TK2MSFTN GP12.phx.gbl...
How in the heck do I traverse this rediculously long object model to find
out if I actually updated a particular value in my dataset???

Jul 21 '05 #2
When I run this in the immediate window I get the following:
DsClient1.Table s["ClientByID "].Rows[0]["PersonLastName "]

Identifier expected.

DsClient1 is a typed dataset on my UI.

"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:e2******** ******@TK2MSFTN GP12.phx.gbl...
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO******** ******@TK2MSFTN GP12.phx.gbl...
How in the heck do I traverse this rediculously long object model to find out if I actually updated a particular value in my dataset???


Jul 21 '05 #3
do a ToString() at the end.
that works for me
"Aaron Ackerman" <no@spam.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
When I run this in the immediate window I get the following:
DsClient1.Table s["ClientByID "].Rows[0]["PersonLastName "]

Identifier expected.

DsClient1 is a typed dataset on my UI.

"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:e2******** ******@TK2MSFTN GP12.phx.gbl...
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO******** ******@TK2MSFTN GP12.phx.gbl...
How in the heck do I traverse this rediculously long object model to find out if I actually updated a particular value in my dataset???



Jul 21 '05 #4
Hello Aaron,

Please be noted that the name of DsClient1 in the immediate window is
case-sensitive.

I also recommend you append Tables["ClientByID "], Rows[0] and
["PersonLastName "] gradually to DsClient1 in the immediate window, and
check which one causes the problem.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5
Nope that doesn't work same error.

"George Durzi" <gdurzi@nospam_ hotmail.com> wrote in message
news:ub******** ******@TK2MSFTN GP12.phx.gbl...
do a ToString() at the end.
that works for me
"Aaron Ackerman" <no@spam.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
When I run this in the immediate window I get the following:
DsClient1.Table s["ClientByID "].Rows[0]["PersonLastName "]

Identifier expected.

DsClient1 is a typed dataset on my UI.

"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:e2******** ******@TK2MSFTN GP12.phx.gbl...
You have to 'dig' <g>...

DataSet.Tables[].Rows[1][]

Digging through each of the collections is a nightmare. It's actually
quicker to just type this into the Command Windows or add a Watch for
something like this:

DataSet.Tables["MyTable"].Rows[0]["FieldName"]
+++ Rick ---
--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Aaron Ackerman" <no@spam.com> wrote in message
news:uO******** ******@TK2MSFTN GP12.phx.gbl...
> How in the heck do I traverse this rediculously long object model to

find
> out if I actually updated a particular value in my dataset???
>
>



Jul 21 '05 #6
"Aaron Ackerman" <no@spam.com> wrote in news:#yGhr2djDH A.2328
@TK2MSFTNGP10.p hx.gbl:

DsClient1.Table s["ClientByID "].Rows[0]["PersonLastName "]

Identifier expected.

DsClient1 is a typed dataset on my UI.


If it's a typed dataset, shouldn't you be able to type:

DsClient1.Clien tByID(0).Person LastName

?

Chris

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2486
by: Paul Paterson | last post by:
I am trying to find a way to mimic by-reference argument passing for immutables in Python. I need to do this because I am writing an automated VB to Python converter. Here's an example of the VB code: Sub Change(ByVal x, ByRef y) x = x+1 y = y+1 End Sub
2
4185
by: tedsuzman | last post by:
----- def f(): ret = 2 exec "ret += 10" return ret print f() ----- The above prints '12', as expected. However,
2
3256
by: Marc Miller | last post by:
When I am debugging my .NET webforms, I cannot open my watch and locals windows nor any other of the debugging windows. Does anyone know what the catch is? Is this like the bug with the properties window not opening again after it is docked? Thanks, Marc Miller
0
1296
by: Armin Zingler | last post by:
Hello, to reproduce the follwoing steps, "managed DirectX" must be installed. Despite, this is not a DirectX but an IDE problem (at least in VB.Net). As nobody answered in m.p.vsnet.ide and m.p.vsnet.debugging, I try it here. 1. Create a new WindowsApplication 2. Add references to - Microsoft.DirectX.dll - Microsoft.DirectX.Direct3D.dll
4
7581
by: Anna Quick | last post by:
I am quite new to javascript, and don't seem to find the problem with stupid internet explorer. The script works fine in safari and mozilla. I searched the groups, but evidently put in the wrong keywords, didn't find the solution. It seems to be as easy as it gets: open a new window with a new url. in IE (I am using IE in mac osx), the error message is: Microsoft JScript runtime error: Line: 9
5
1269
by: Aaron Ackerman | last post by:
How in the heck do I traverse this rediculously long object model to find out if I actually updated a particular value in my dataset???
6
2428
by: SkeanDu | last post by:
Ok, here is my problem. I have an aspx page that displays a databound datagrid and in one of the datagrid column headers I have an image that when clicked opens up a modal web dialog (another aspx page). >From this dialog I want the users to be able to select a filter item from a databound combobox and click on the apply button on the web dialog that will then disappear and the filtered data will be displayed on my datagrid.
2
2957
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I want to give a user the possibility of "restarting" an interactive session, by removing all the objects defined by her since the beginning. The way I make this possible is by having a "function" that can be called during the interactive session using locals() as an argument, as follows: restart(locals()) It works. However, I would like to make this "friendlier", i.e. requiring the user to simply type
4
1331
by: rocksportrocker | last post by:
Hi, the following code does not work until I ommit the "a=0" statement. def test(): exec "a=3" in locals() print a a=0
0
8347
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8792
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8571
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.