how to store a string containing escape/exclaim mark/tilde characters using vbscript
Hi Everyone
I need to store the below string into a variable and type this variable value into a text, but I cannot. TestComplete will be stalled when typing half way
strText = "("\(troub\*e\) sh\*t") AND ("\{troub\*e\} sh\*t") AND ("\[troub\*e\] sh\*t") AND ("\<troub\*e\> sh\*t") AND ("\@troub\*e \! sh\*t") AND ("\troub\*e\~ sh\*t") AND ("\^troub\*e\& sh\*t")"
However, I type the above string manually and record my typing, I see that TestComplete is recording the above string as
(""\(troub\*e\) sh\*t"") AND (""\{troub\*e\} sh\*t"") AND (""\[[troub\*e\] sh\*t"") AND (""\<troub\*e\> sh\*t"") AND (""\@troub\*e \!! sh\*t"") AND (""\troub\*e\~~ sh\*t"") AND (""\^^troub\*e\& sh\*t"")
As I have mentioned above, I need to store the above string into a data file, whenever my script is running, it will read that data file, load the string into strText, then my textFieldObj.Keys(strText)
So what should I do here to make TestComplete be able to key in successful my string as look like it see that string a bit different
Kind Regards
Nat