Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB script Coding with strings.
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
I don't think a function is required for this... its as simple as follows which calculate the occurrences as well....


Code:
strString = "ABC is good at testing.ABC is working on PC.ABC is playing games."

ArrstrString = Split (strString, "ABC")

strCount = Ubound(ArrstrString)

msgbox ("No of occurrences: "&strCount)
Reply


Messages In This Thread
VB script Coding with strings. - by Tejas Tikhe - 07-15-2012, 12:39 PM
RE: VB script Coding with strings. - by souvikghosh_diatm - 08-17-2012, 05:14 PM
RE: VB script Coding with strings. - by DevilkID - 09-11-2012, 11:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile How to join sub strings in UFT without using join built-in function? chetna 1 1,937 07-05-2018, 05:39 PM
Last Post: Ankur
  Parametrize and Concatenate Strings Aisha2015 1 2,088 08-13-2015, 08:45 AM
Last Post: Ankur
  need a coding standards for the project sush 0 1,910 03-01-2008, 09:46 AM
Last Post: sush

Forum Jump:


Users browsing this thread: 2 Guest(s)