Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Concatenation operator in Vbscript
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi all,
I have an approximately same issue, the idea is that I am getting a value from DB which is assigned to a variable, e.g. Requested_Field.
the format of this value is e.g.: 126991.55 (it have an ".")
then to the second variable is assigned another value, which is got from the application, it's value is for e.g. the same but format is another: 126,991.55 (with "," and ".").
when I am comparing them, I'm getting an error, this is because the formats are different: the report added by me when comparison fails is:
The variable1: '126991.55' is not the same as variable2: '126,991.55'! Please check manually!

Can anyone help me to remove the "," from first variable, I don't know which statement should be used to remove some specific chars(the chars I want) from a string or a variable..
Please can anyone help me?
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 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: 1 Guest(s)