Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

Double quotes added to variables

$
0
0

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!


Viewing all articles
Browse latest Browse all 20755

Trending Articles