Converting String input from currency type format to double

Converting String input from currency type format to double

Steps to do:

  1. Remove the dollar ($) sign from the currency

here is the tutorial…

eg:

  • Removing $ symbol from the Currency

Dim strCurrencyValue = “$3,500”
Dim strNewValue = strCurrencyValue.Replace(“$”, string.empty)

Dim strDbl = Double.Parse(strNewValue)

  • Changing Currency Symbol

Dim strCurrencyValue = “$3,500”
Dim strNewValue = strCurrencyValue.Replace(“$”, “INR “)