[DUG] interesting issue in .NET

Jeremy Coulter vss at vss.co.nz
Fri Jan 5 11:20:15 NZDT 2007


Hi all.
I have come across an issue that I am not sure about in .NET
 
I have a value being returned from a stored procedure. Tha value is a
decimal value, i.e. 511.34
 
But when I do this :-  system.Double(rdr['AMOUNT']).ToString('C');
(converting it to a currency format)
 
I get an error   "Specified cast is not valid"   yet I know there IS a value
being passed in, and it IS a double.
 
anyone know WHY?
 
Thanks, Jeremy

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 04/01/2007
13:34
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20070105/9e7b720f/attachment.html


More information about the Delphi mailing list