Link to home
Start Free TrialLog in
Avatar of duta
duta

asked on

VB 2005: Function to convert a string value into decimal value?

Dear experts:

Hi!
To covert a string value into an integer value, we use "Convert.ToInt32" function.

What function is there to convert a string value into a decimal value?

I am going to write a simple code to create F-to-C temperature converter, using VB 2005.

Thanks a lot!

duta
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

you can use Parse() methods instead:

Dim d as Decimal
d = Decimal.Parse(somestringhere)

ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of duta
duta

ASKER

Thanks a lo for your super-prompt reply.

I will come back after trying your tip.

SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial