08-10-2009, 09:22 PM
I am trying to clear the comma that I'm picking up in an output value I've recorded (14,800.18). I would like to set/convert it to be 14800.18. How can I go about doing that?
I am trying to compare it to a numeric value and it's failing because of the comma I think.
I am trying to compare it to a numeric value and it's failing because of the comma I think.
Code:
DbTable("DbTable_4").Output CheckPoint("DbTable_4")
Browser("V").Page("V").WebElement("14,800.18").Output CheckPoint("14,800.18")
'here I'm getting 14800.18
value5 = Datatable.Value("DbTable_TAmount")
'here I'm getting 14,800.18
value6 = Datatable.Value("_charges_innertext_out")
If Trim(value5) = Trim(value6) Then
foundC = True
Reporter.ReportEvent micPass, "found", "TAmount is correct."
Else
foundC = false
Reporter.ReportEvent micFail, "found", "TAmount is INCORRECT."
End if