Well, you could do:

System.Int32 last = -1;

if(dr.Read())
{
  while(dr.Read()) {};
  last = dr.GetInt32(0);
}

David L. Penton, Microsoft MVP
JCPenney Technical Specialist / Lead
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach"
[EMAIL PROTECTED]

Do you have the VBScript Docs or SQL BOL installed?  If not, why not?
VBScript Docs: http://www.davidpenton.com/vbscript 
SQL BOL: http://www.davidpenton.com/sqlbol

-----Original Message-----
From: Falls, Travis D (CASD, IT) [mailto:[EMAIL PROTECTED]]

in asp.net  I have executed a query.  the query returns a list of memberID
(type String) how can I get the last one? and then cast it to int or
Integer?

 
Regards,
 
Travis D. Falls


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
  • Data Reader Falls, Travis D (CASD, IT)
    • David L. Penton

Reply via email to