0 votes
in QuickTest Professional (QTP) by

In QTP how you can remove the spaces from string?

1 Answer

0 votes
by
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”

Related questions

0 votes
asked Oct 21, 2020 in JAVA by rahuljain1
0 votes
asked Jul 9, 2023 in Snowflake by Robin
...