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
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
How to create a function in vbscript?
How will you get the natural logarithm of the given number in vbscript?
Which function allows you to instantiate an object given its programmatic identifier or progid?
When does ‘on click of button’ event gets triggered in the vbscript language?
What is the difference between for loop and while loop?
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
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<
how to increasing the numbers in a given text box please write a vb script
Explain vbscript in detail?
what types of bugs will we find out in banking projects for automation testing?
what is the difference between modular and data and keyword driven framework
Mention what is byref and byval parameters in vbscript?