twhitehouse
10 years agoContributor
Double quotes added to variables
At times, double quotes seem to be added to string variables in Test Complete. This may be a vbscript issue, I am not sure. However, I have seen that a variable could end up having its value change like this:
"data"
""data""
"""data"""
The more I keep using it, the more double quotes get added to the value of the variable. To bypass, I actually started creating copies of the variable since the value was not going to change anyways like so:
Dim data1
Dim data2
Dim data3
data1 = "blah"
data2 = "blah"
data3 = "blah"
This is very wasteful, I know. But, I can not figure out why these so called phantom double quotes keep injecting themselves into my code.
Any ideas?
Thanks in advance!