Help - Search - Members - Calendar
Full Version: Vb.net Help
BleepingComputer.com > Software > Programming
   
shortymac
ok, i'm trying to covert a text box info into a string then into decimal format, like this

sSalary = txtSalary.ToString
Salary = Decimal.Parse(sSalary)

i tired
Salary = Decimal.Parse(txtSalary.ToString)

no matter what i do, i keep on getting this error message at runtime "Input string was not in a correct format"

i dont understand why this is happening, i dont get an error message when compling

please help
Underwhelmed
Try:

CODE
Salary = Decimal.Parse(txtSalary.Text)
shortymac
i did that and it worked! thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.