Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Hamish Jones   on Jul 19 In Asp.net Category.

  
Question Answered By: Gerardo Morgan   on Jul 19

just a quicky ... I hav had problems in the past with converting types.

Trouble is I'm a sharper

Sometimes the conversion (int)adouble; will fail , whereby
Convert.ToInt32(adouble); will work  ... what is the equivalent in VB ?

If GetString90) is an autoincrement in db then shouldn't you be using an integer
version ? at a guess myDataReader.GetInt32() or GetValue() or something ?

Once upon a time I used the following
(Convert.ToDecimal(reader.GetValue(1))*(decimal)(reader.GetValue(2))).ToString("\
N")

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to use the DataReader. Or get search suggestion and latest updates.


Tagged: