Accessing a Data Field

  • Thread starter Thread starter glennTK
  • Start date Start date
G

glennTK

Hello Group,

I'm trying to access a single field of data from a dataset in a web form
without displaying it on the form. I'm trying to write a Login form and
need to equate values. Would anyone be able to provide a code snippet for
such.

I would have thought there'd be something like the following possible to do:

FieldValue = DsUsers.Row(x).Column(y)

But have not been able to determine such. Thank you,
Glenn T. Kitchen
 
Glenn,

The standard beginners question with datasets.
FieldValue = DsUsers.Row(x).Column(y)
FieldValue = DsUsers.Table(x).Row(x).Items(y)

Items is default so this goes as well
DsUsers.Table(x).Rows(x)(y)

I hope this helps,

Cor
 
Hi Cor,

Thank you.

So could we look at a dataset as being a database, having tables within,
except that it's cached?

I'm gonna do some practicing with the stuff to see how it works out. Thanks
for your help.
Glenn
 
Glenn,
So could we look at a dataset as being a database, having tables within,
except that it's cached?

Often is toldt, that you can look to it as a database in memory. Although it
is possible to store it in an XML file on disk, can you not see it as a real
database because that you can only read/write complete files from/to disk.

Therefore I am not really glad with that description database because it
gives wrong idea's.


Cor
 
Cor,

I see your point and I now have a better perception of what a dataset is. I
did some work with the "new concept of a field" and everything is working
fine.

I wasn't far off... :-)

Thank you,
glenn
 

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

Back
Top