Micro Focus QTP (UFT) Forums
Need " and ' chars - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Need " and ' chars (/Thread-Need-and-chars)



Need " and ' chars - nikmar - 01-13-2011

Hi guys,
could you please help me.
I have a string which contain special characters and I need to separate them.
ex:

testString = @#'$"%*

I need to store each char separatly, and I don't know how to store " and ' chars.

Please help me.


RE: Need " and ' chars - manishbhalshankar - 01-14-2011

Hi Nikmar,
Use: Len, Left and Right functions to achieve this.


RE: Need " and ' chars - nikmar - 01-14-2011

Yes of course, I forget about this.
But
I need something like this, I have a variable ch=@#$&"#')(^&* it's a pin stored in DB and I need to decrypt it
c = left(ch,1)
if c == "and here I need chars " and ' " then....

Many thanks.


RE: Need " and ' chars - nikmar - 01-14-2011

I found.
if c = """" then...

Many thanks for respons.
Best Regards.