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

Explain about adodb.stream class?

587


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

618


Which operator can be used to change the value of the operand or change the state of the condition?

573


How can constants be declared in the vbscript language?

550


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3265






how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1335


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2897


What is the purpose of on error resume next statement?

575


What is the output of a + b in vbscript if a = 5 and b = 10?

2086


What is the purpose of the err object in the vbscript language?

618


Explain about tristate constants?

583


who will create the object?

1481


How will you compare two strings in vbscript?

592


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

1413


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

2157