B
brian shannon
Can you define a value from a datareader through column
idexes. For example:
dim myreader as sqldatareader
SQL = select fname, lname, address from personal.
//Datareader is initialized with the above SQL code
Instead of using the following to assign values from the
reader:
while myreader.read
txtTest1.text = myreader("fname")
txtTest2.text = myreader("lname")
txtTest3.text = myreader("address")
end while
txtTest1.text = myreader.index[0]
txtTest2.text = myreaderindex[1]
txtTest3.text = myreaderindex[2]
I am looking to programatically go through the reader and
programatically assign to text boxes.
Thanks
idexes. For example:
dim myreader as sqldatareader
SQL = select fname, lname, address from personal.
//Datareader is initialized with the above SQL code
Instead of using the following to assign values from the
reader:
while myreader.read
txtTest1.text = myreader("fname")
txtTest2.text = myreader("lname")
txtTest3.text = myreader("address")
end while
txtTest1.text = myreader.index[0]
txtTest2.text = myreaderindex[1]
txtTest3.text = myreaderindex[2]
I am looking to programatically go through the reader and
programatically assign to text boxes.
Thanks