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

Answer Posted / vishnu

Str = "Welcome to QTPWorld"
Sp1=Split(str)
For i=0 to ubound(Sp1)
temp=temp&Sp1(i)
Next
print temp

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which event is triggered when mouse focus comes out of an element in the vbscript language?

593


Anyone have qtp11.0 crack?

2486


Description.Create

2229


How to add actions in driver script to run those actions in QTP?

1608


What is loose binding? Why is it not a good practice to use it?

735






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

1992


Which in-built function is used to format the number in the vbscript language?

670


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1750


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

1898


How can the spaces from the string be removed?

684


Does VB/Win make standalone .EXE files?

3006


Is vbscript language a case-sensitive language and what does it mean?

635


What are the data types supported by vbscript?

673


What is the use of the recordset object and which statement is used to create such an object?

626


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1338