UFT Automation

Tuesday, 6 July 2021

How to split a string or number with four digits using vb script

strString = "12345678909876543210"
For i=1 To Len(strString) step 4
    WScript.Echo Mid(strString,i,4)
Next

--------------------
-Out put is:

1234
5678
9098
7654
3210
Posted by Suresh Reddy Meti at 03:03
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2024 (1)
    • ►  February (1)
  • ►  2023 (1)
    • ►  June (1)
  • ►  2022 (6)
    • ►  September (5)
    • ►  January (1)
  • ▼  2021 (20)
    • ▼  July (20)
      • VB Script Sample programs
      • How to split a string or number with four digits u...
      • How do you get number of lines in text file using ...
      • UFT Interview questions
      • Difference between Invokeapplication and systemuti...
      • Difference between Executefile and loadfunctionlib...
      • Interview questions from other Blogger
      • How to find repeated words in given string
      • How to get string, number and special charters in ...
      • Sample QTP scripts
      • QTP FAQs
      • Mandatory Questions
      • Write a Program to open new browser with given URL...
      • Close Opened Browsers Except QC
      • Automation Section
      • Find and replace text in multiple excel file with ...
      • To Create dialog box before execution
      • To Find a value and replace in multiple excel files
      • Find and Replace values in multiple columns and mu...
      • WebTable Scripts
Watermark theme. Powered by Blogger.