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
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Compare java script and vb script?
i need to sort the data using qtp script for this how i need to write a qtp script
How do i automate a website www.flyashx.com without having any test cases witin a week time.
When does ‘on click of button’ event gets triggered in the vbscript language?
how to acces the remote mechine using vb cript(QTP)
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
What is byref and byval parameters in vbscript?
Explain about tristate constants in vbscript?
What is the difference between javascript and vbscript?
What is loose binding? Why is it not a good practice to use it?
How to open browser in vb script?
What are subprocedures in vbscript?
Which operator can be used to do an xor operation in vbscript?