Information générale
Titre:
Casting ..no. must be less than infinity
Hi. I have following code:
double Disc = (Double)rdr["Disc"];
and I am getting an error:
..When casting from a number, the value must be a number less than infinity
This is in an OLeDBDataReader and Disc is a Numeric Field. It is poupulated with data. I have tried tis with N(1,0) and N(12,2) and get same error.
Anybody got any ideas whats causing this ? . Character fields are not causing a problem.
Regards,
Gerard
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement