473,396 Members | 1,990 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,396 software developers and data experts.

Movement of record

i am the beginner of VB.NET. At the vb6 if i want to move the record at the
ado, i can use the following code : adoStudent.movenext.

At the VB.NET how can i do ? If i have a dataset call dsLoginCheck ?
Jan 9 '06 #1
2 1008
"WilliamMomo" <Wi*********@discussions.microsoft.com> schrieb
i am the beginner of VB.NET. At the vb6 if i want to move the record
at the ado, i can use the following code : adoStudent.movenext.

At the VB.NET how can i do ? If i have a dataset call dsLoginCheck ?


ADO.Net is still incomplete. You can not navigate through all records using
MovePrevious/MoveNext. You either have to load the whole table completely
into memory (often impossible or inacceptable with thousands of records), or
load all the PKs and execute a Select-SQL using the PK of the "current
record" to navigate.

see also:
http://msdn.microsoft.com/library/en...withadonet.asp

in particular:
http://msdn.microsoft.com/library/en...ngdatasets.asp

Better group to ask ADO.Net related (language unrelated) questions:
microsoft.public.dotnet.framework.adonet
Armin

Jan 9 '06 #2
WilliamMomo,

Be aware that a datases is a wrapper around datatables which you can compare
with recordsets (although a dataset/datatable is disconnected)

The movenext etc through a datatable in .Net is much easier than it was with
Ado

First to address your table
dim dt as datatable = dsLoginCheck.Tables(0)

dt.rows(0) is the first
dt.rows(0+1) is the next row
dt.rows(dt.rows.count-1) is the last

etc think about it yourself what an endless posibilities you have with this

I hope this helps,

Cor
Jan 9 '06 #3

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

Similar topics

2
by: Robin Shuff | last post by:
Hi, I'm trying to limit the movement of the mouse cursor in using a VB app. The idea is to stop the cursor straying on to the second monitor of a dual screen set-up (i.e. a projector) while this...
1
by: Rocky A | last post by:
I don't remember ever reading about this in any of the "how to" books I've got or I wouldn't bother you guys (honest, I'm not being lazy here.....OK maybe just a little, but you guys are SOOOO...
1
by: Benny Raymond | last post by:
In my attempt to make a macro recording program where i can then playback mouse movements i'm running into a big problem: I'm trying to simulate the movement of the mouse to a point on the...
2
by: Skwerl | last post by:
We just installed a new SAN from Sun and need to migrate several terrabytes over to it from our Windows servers. We've found that drag-and-drop copying files using Explorer is going to be very...
5
by: Amar Prakash Tripaithi | last post by:
Hi, Is there exists some function for controlling the cursor movement in C++. With control of cursor movement I mean, is there exists any function that let me to relocate the cursor as per...
1
by: sircool | last post by:
hi guys, the problemm is that you have a horse on the chess board.You should write a function that calculate the horse's movement.I mean how many movement later you can go every point on the board.I...
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
5
by: hurricane_number_one | last post by:
I am creating a simple server application, that will listen for incoming mouse coordinates and then move the mouse accordingly. So basically it's like a very simple VNC server without and screen...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.