How to extract numeric values - 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: How to extract numeric values (/Thread-How-to-extract-numeric-values) |
How to extract numeric values - hamzaz - 04-18-2012 Hi All, I am working on an issue, I have a string value str="123 344 123" now i want to extract these values into 3 different variables like a=123 b=344 c=123 Any suggestion how can i do it? RE: How to extract numeric values - sshukla12 - 04-18-2012 Hi, Use split function for this. Regards, Sankalp RE: How to extract numeric values - Shridevi.Salagare - 04-20-2012 If the values are seperated by space use delimiter as space and split the string. E.g. str = "123 456 789" strArr = Split(str," ") RE: How to extract numeric values - ssvali - 04-26-2012 Try this :- Code: str = "123 456 786" |