I have string like hp company.print tis like company hp.write a program in vbscripting
Answer Posted / jp mumbai
Hi,
We can write a code in 2 ways. one is Generic Code and another is Hard Code.
In Generic Code:
Str="hp company"
ArrayStr=Split(Str)
For i = uBound(ArrayStr) to 0 Step-1
expStr=expStr &" "& ArrayStr(i)
Next
msgbox expStr
-------------------------------------------------
In Hard Code:
Str="hp company"
ArrayStr=Split(Str)
expStr= ArrayStr(1)&" "&ArrayStr(0)
msgbox expStr
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can you create a file object to work with the files in the vbscript language?
How to write VB script for login module?
How to Enter Values on the Command promt using VB script
What is vbscript language used for and which earlier language is it modeled upon?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
How you can call vbscript functions?
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
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
There are 5 web pages.write a script to click the button on 4th web page.
How to pass argument by reference to a function in vbscript?
What is purpose of scripting.filesystemobject class in vbscript?
How will you reverse a string in vbscript?
why variable name should not exceed 255 characters?
Which operator can be used to check if two numbers are equal or not in vbscript?
what is resorceallocation