Dim a
a=Mid("qtp",2)
msgbox a
Output-tp
Dim a
a=Mid("Testing",1,4)
msgbox a
Output-Test
Dim a
a=Mid("Software Testing",10,7)
msgbox a
Output-Testing
Showing posts with label vbscript examples. Show all posts
Showing posts with label vbscript examples. Show all posts
qtp script to return specified number of characters from a string-VBScript Mid Function example-vbscript function commands-scripts in QTP-QTP Scripts
QTP script to return the number of characters in a string-len function example-qtp script to display the number of characters in a string
Dim a
a=len("qtp")
msgbox " Length of String a is = " & a
Output-Length of String a is = 3
Dim a
a=len("Testing")
msgbox " Length of String a is = " & a
Output-Length of String a is = 7
QTP Script to Get Names of Subfolders in a Folder
Script in QTP to get Collection(names) of Subfolders in a Folder.
Below script is to get Subfolders names in Folder V1
Where Folder V1 is in Fdrive.
Dim a,b, c, d, e
Set a = CreateObject("Scripting.FileSystemObject")
Set b = a.GetFolder("F:\V1")
Set c = b.SubFolders
For Each d in c
e=e&d.name&vbnewline
Next
msgbox e
Movie Songs Lyrics
SQL Queries
Subscribe to:
Posts (Atom)