Micro Focus QTP (UFT) Forums
VB Script For comapring 2 String. - 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: VB Script For comapring 2 String. (/Thread-VB-Script-For-comapring-2-String)



VB Script For comapring 2 String. - raghava82 - 08-19-2008

Hi !

Here I got a Problem that, I want to Compare a 2 Strings,
ie, In that one String is Fixed, and another one is Autogenerated one, but, in the Autogeneraed string it always start with Number 2, so I want to check that the 2nd string is statred with 2 r not the remaing string whar ever it may be.

Raghava


RE: VB Script For comapring 2 String. - nageshpv - 08-19-2008

hi,
Try the Split function for string comparison.
else even you can try to do the Left function to get the first character of the string.
Hope this helps.