How to remove the spaces in a string Ex: "Welcome to
QTPWorld" ?

Answer Posted / mahesh

Ex::

X="Welcome to QTP World"

Y=trim(X)
Msgbox Y

O/p::WelcometoQTPWorld

Is This Answer Correct ?    4 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the object hyrarchy in QTP for a web based application

1885


What are lbound and ubound in the vbscript language?

606


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2060


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

483


For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

1753






How to assign a date value to a variable?

591


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

534


What is the purpose of on error resume next statement?

577


How can you create a file object to work with the files in the vbscript language?

507


Which operator can be used to check if two numbers are equal or not in vbscript?

652


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3553


Mention how to access array data?

513


What are the properties of regexp object?

581


Mention what is byref and byval parameters in vbscript?

579


How will you get a string with the specified character the specified number of times in vbscript?

575