473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to simplfy a data record

Des
When I used asp I would use the line rsCustomers("<field name>") which
is easy. I have to
write

sDescription = DataSet.Tables("ITEM").Rows(0)("Description")
sName = DataSet.Tables("ITEM").Rows(0)("Name")
dCost = DataSet.Tables("ITEM").Rows(0)("Cost")

instead of

sDescription = rsCustomers("Description")
sName = rsCustomers("Name")
dCost = rsCustomers("Cost")

Can this be done in dot net ?

Feb 22 '06 #1
1 870
Hi Des,

I think this simplified mode access was availabale only in a "movenext" cycle.
You do the same thing in .net.

Here is a csharp code:

string xx;
foreach(DataRow row in DataSet.Tables["ITEM"].Rows)
{
xx= row["Name"];
}
Best regards,
Lajos

"Des" wrote:
When I used asp I would use the line rsCustomers("<field name>") which
is easy. I have to
write

sDescription = DataSet.Tables("ITEM").Rows(0)("Description")
sName = DataSet.Tables("ITEM").Rows(0)("Name")
dCost = DataSet.Tables("ITEM").Rows(0)("Cost")

instead of

sDescription = rsCustomers("Description")
sName = rsCustomers("Name")
dCost = rsCustomers("Cost")

Can this be done in dot net ?

Feb 22 '06 #2

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

Similar topics

32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
7
by: Neil Ginsberg | last post by:
I'm having some problems with an Access 2000 MDB file with a SQL Server 7 back end, using ODBC linked tables. I previously wrote about this, but am reposting it with some additional information and...
9
by: Brad | last post by:
I have written some code to manipulate data/records in a MASTER (order header) and DETAIL (order details) tables. What I have written is too extensive to post but essentially trying to: 1....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.