By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Data type conversion

P: n/a
Hi,
I need help with a Error message. It is do to a datatype conversion of a
varchar to a float. If anyone has code to convert or an away around this
problem that would be great.

Thanks for all the help.

Tom
*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
float? You mean single or double?

a varchar returned from SQL Server is usually accessed as a "string".

If this be the case, then Single.Parse or Double.Parse will do. However,
it's better to use TryParse, just in case the number is badly formed.

"Thomas Beyerlein" <tb***@yahoo.com> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
Hi,
I need help with a Error message. It is do to a datatype conversion of a
varchar to a float. If anyone has code to convert or an away around this
problem that would be great.

Thanks for all the help.

Tom
*** Sent via Developersdex http://www.developersdex.com ***

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.