• +91 9723535972
  • info@interviewmaterial.com

QTP Interview Questions and Answers

Question - In QTP how you can remove the spaces from string?

Answer -

You can use replace function to remove spaces from string in QTP

Print replace(“ sdsd  sd sd s “, “ “,”””)

Output will be sdsdsdsds

Itrim function can be used if only leading spaces from string needs to be removed

Print Itrim(“ sdsd sd s   “) à Output will be “sdsd sd s”

You can use rtrim function to remove trailing spaces from string

Print rtrim(“ sdsd sd s   ” )  à Output will be “  sdsd sd s”

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners