Automation testing QTP with VB Script functions interview questions


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

LTrim; RTrim; and Trim Functions?

LTrim, RTrim and Trim functions return a copy of a string without leading spaces (LTrim), trailing spaces (RTrim), or both leading and trailing spaces (Trim).

Syntax:  LTrim(string)
      RTrim(string)
      Trim(string)

Arguments:
string: The string argument is any valid string expression. If string contains Null, Null is returned.

Example: 

'LTrim 
Print Ltrim("Welcome to QTPWorld.com") 
Output:"Welcome to QTPWorld.com 
Example: 
'RTrim  
Print    Rtrim("Welcome    to QTPWorld.com                          ")                    
Output: "            Welcome to QTPWorld.com"
Example: 
'Trim
Print trim("Welcome to QTPWorld.com")                
Output:"Welcome to QTPWorld.com"

 




Next 5 interview question(s)

1
Method: Close?
2
Method: CopyFile?
3
Method: CopyFolder?
4
Method: CreateFolder?
5
Method: CreateTextFile?


Comments