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 the difference between do until loop and do while loop?

641


What is sql loader? Explain the files used by sql loader to load file?

724


How to assign a numeric value to a variable?

726


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

627


how to set one column as primary key in QTP and fetch values accordingly

1919






Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1873


How to make sure that items in a wintree are sorted al?

2446


how to increasing the numbers in a given text box please write a vb script

1814


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

692


give me any information abou vb script books learn quckly

1742


Write a Script for ATM in QTP

3450


Mention what if you do not specify anything when you call a procedure?

655


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2267


What are the uses of vb script?

663


How will you get the smallest subscript of an array in vbscript?

948