Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copying random length part of the string.
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
alternately, you can take trim your value upto the first space(" ") in string
Code:
str = "Change page: < 1 2 3 4 5 6 7 8 9 10 ... > | Displaying page 1 of 426, items 1 to 10 of 4257."
num = mid(str,instrrev(str," "),len(str)-1)
msgbox num

correction - you can take trim your value upto the first space(" ") in string from last

Reply


Messages In This Thread
RE: Copying random length part of the string. - by Saket - 12-29-2009, 02:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script - random string qtp_user22 5 26,945 06-19-2014, 04:54 PM
Last Post: roysam404
  How to extract part of a string between two particular characters. ACCBAJPA 7 5,759 08-22-2013, 02:39 PM
Last Post: ACCBAJPA
Exclamation Retrieve the complete height and width of a browser beyond the visible part as wel learnQtptips 0 2,114 05-22-2013, 09:36 AM
Last Post: learnQtptips
  how to get mantissa and decimal part Ishul 3 4,109 03-28-2012, 10:40 PM
Last Post: Surya
  How to have a variable that has a string comma string .. shareq1310 5 5,080 11-09-2011, 03:33 PM
Last Post: parminderdhiman84

Forum Jump:


Users browsing this thread: 1 Guest(s)