Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB Script For comapring 2 String.
#1
Solved: 10 Years, 7 Months, 3 Weeks ago
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
Reply
#2
Solved: 10 Years, 7 Months, 3 Weeks ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script - random string qtp_user22 5 25,914 06-19-2014, 04:54 PM
Last Post: roysam404
  VB Script:number of times a character appears in a string with position Jyobtech 1 11,677 08-07-2013, 01:03 PM
Last Post: anil2u
  How to have a variable that has a string comma string .. shareq1310 5 4,757 11-09-2011, 03:33 PM
Last Post: parminderdhiman84
  string function to get a letter from a string ajay.r1982 3 7,332 06-30-2009, 08:58 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)