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”