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

Answer Posted / sowjanya

Msgbox Replace("wellcome to qtp world"," ","")

OR

str= "Wellcome to qtp world"

arr=Split(str," ")

for i=0 to Ubound(arr)

abc=abc&arr(i)

next

msgbox abc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vbscript language used for and which earlier language is it modeled upon?

531


Explain the functionality of vbscript?

538


Explain vbscript in detail?

616


How are values assigned to string type and numeric type variables?

538


How to open a file. What is the perpose of true and false mode there?

607






How many types of operators are available in the vbscript language?

537


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1752


Out of the different type of operators, which are evaluated first and last in the vbscript language?

564


Explain the scope of the variables using dim, public, and private keywords respectively.

719


There are 5 web pages.write a script to click the button on 4th web page.

2938


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1964


How to delete a cookie using vbscript?

553


Anyone have qtp11.0 crack?

2385


How many types of procedures are available in the vbscript language?

532


What is Procedure or Subroutine in VB Script?

604