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
Which operator can be used to check if two numbers are equal or not in vbscript?
what is the features of visual basic?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
What are keywords in the vbscript language?
Can u describe what kind of testing are for OTC derivates by banks.
what is the differance between BYVAL,BYREF?
what is resorceallocation
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Mention what is variant in vbscript?
What is the difference between do until loop and do while loop?
Is vbscript language a case-sensitive language and what does it mean?
What are the 2 ways in which a variable can be declared in the vbscript language?
i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
How regexp.execute method works?