Returns a whole number from 0 to 59
Dim a
a=Minute(Now)
Msgbox a
Output-5
Showing posts with label vbscript function examples. Show all posts
Showing posts with label vbscript function examples. Show all posts
QTP script to return minute of the hour-script in qtp to print minute of the hour-vbscript function examples-Minute function example(VBScript)
QTP Script to return ASCII value of a given character-script in qtp to return the ANSI character code corresponding to given character-Asc function
Dim a
a=Asc("A")
msgbox a
Output-65
Dim a
a=Asc("a")
msgbox a
Output-97
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
Subscribe to:
Posts (Atom)