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
What is the scope of a constant declared using public?
How can you fetch the value of a cookie?
How will you get a subset of a array in vbscript?
Which object provide information about a single runtime error in a vbscript?
Which operator is used to concatenate the 2 values in the vbscript language?
How should i Create Email invite with server-side Coding?
what is diff between static and dynaic arrys?
When does ‘on click of button’ event gets triggered in the vbscript language?
Explain the arrays in vb script?
What are the uses of vb script?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
What is the use of the instr function?
How many types of procedures are available in the vbscript language?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?