Micro Focus QTP (UFT) Forums
Seperate integer, char and special char - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Seperate integer, char and special char (/Thread-Seperate-integer-char-and-special-char)



Seperate integer, char and special char - alias@12 - 03-24-2011

Hi,

Please help me to slove the below scenario.
I have a Input string '12ca#$3d*'
Please seperate the integer, char and special char from the input string.
That is output is
var1=123.
Var2=cad
Var3=#$

Thanks...





RE: Seperate integer, char and special char - basanth27 - 03-24-2011

is this string going to be a constant? If yes, then we can use Split function.


RE: Seperate integer, char and special char - manishbhalshankar - 03-24-2011

Hi Alias,

Get the ascii value of each char and check if it corresponds to number or alphabet or special char and distribute it in your variables using concatination.