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

Answer Posted / mithuna reddy

Dim str,arrsplit,arrjoin

str = "Welcome to QTP World"
arrsplit = Split(str," ")
arrjoin = Join(arrsplit,"")
MsgBox arrjoin

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

620


Compare java script and vb script?

591


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1556


give me any information abou vb script books learn quckly

1657


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1797






Illustrate briefly about the different types of statement

2025


What if you do not specify anything when you call a procedure?

537


please can you help me to get a code of flames using a visual basic 6

1227


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1787


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

564


Explain the extension .hta?

542


How to assign a date value to a variable?

591


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1802


Explain the constants in vbscript?

563


What are the 2 ways in which a variable can be declared in the vbscript language?

564