I have string like hp company.print tis like company hp.write a program in vbscripting
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 |
write a Vb script to find a whther a selected drive exits.
reverse the string without using reverse string?
How are values assigned to the variables in the vbscript language?
write a vb script to create a folder?
Mention how to assign a date value to a variable?
Write VB script to convert from feet to inches(hint 1feet=12 inches)
When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?
3 Answers Logica CMG, McGraw Hill,
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....
Can u describe what kind of testing are for OTC derivates by banks.