Automation testing QTP with VB Script functions Interview questions


Total available count: 68
Subject - Software Testing
Subsubject - Automation testing QTP with VB Script functions

Right Function?

Right function returns a specified number of characters from the right side of a string.

Syntax: Right(string, length)

Arguments:
String: String expression from which the rightmost characters are returned. If string contains Null, Null is returned.
length: Numeric expression indicating how many characters to return. If 0, a zero-length string is returned. If greater than or equal to the number of characters in string, the entire string is returned.

Example: 

Str="Welcome to the World of QTP"
print  Right(Str,12)                                                
Output: World of QTP
Print Right("Slightbook",7)                                            
Output:  ghtbook

 




Next 5 interview question(s)

1
Mid Function?
2
Replace Function?
3
Space Function?
4
Split Function?
5
StrComp Function?

Comments