Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Concatenation operator in Vbscript
#7
Solved: 11 Years, 3 Months, 3 Weeks ago
You could use a double instead of string, but if you want to use strings and must remove the comma....

Code:
a1 = "123,456.78"
a1 = replace(a1,",","") 'replaces the comma with a blank

Just in case you were wondering about the double method
Code:
a1 = cdbl("123,454.56")
Reply


Messages In This Thread
RE: Concatenation operator in Vbscript - by Ankur - 12-21-2009, 12:06 AM
RE: Concatenation operator in Vbscript - by Saket - 12-21-2009, 01:34 PM
RE: Concatenation operator in Vbscript - by lotos - 09-13-2010, 04:32 PM
RE: Concatenation operator in Vbscript - by jsknight1969 - 09-13-2010, 09:13 PM
RE: Concatenation operator in Vbscript - by lotos - 09-14-2010, 08:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do we use OR operator with Desc Programming. anu05446 3 2,299 01-07-2014, 01:36 PM
Last Post: anu05446
  workaround for addition airthmetic operator krr 1 1,759 01-06-2013, 04:13 AM
Last Post: kordirko
  String Concatenation send2aarti 0 3,175 08-26-2010, 09:22 PM
Last Post: send2aarti

Forum Jump:


Users browsing this thread: 2 Guest(s)