Hi all..I have two values. a=20 ,b=30
I want to perform c= a+b and c= a*b using user define
function.please anyone give the answer
Answer / prathyusha
Res=Add (20,30)
msgbox Res
Function Add (a,b)
c=a+b
Add=c
End Function
Res1= Mul (20,30)
msgbox Res1
Function Mul (a,b)
c=a*b
Mul=c
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
Which constant is used for print and display functions and works as same as pressing enter key?
Mention what is select case statement?
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
write a vb script to generate hello 5 times using do until loop
How to remove the spaces in a string Ex: "Welcome to QTPWorld" ?
My Salary is 65000. How Much TDS I have to pay
Explain about the extension .hta?
Explain the filter expression?
I wrote the vbscript code on notepad i was geeting run time error "object required line 1" my code is set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signin("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Setsec ure.Crypt.Encrypt("entr password") browser("gmail").page("gmail").WebButton("siginobj").click pls tell me whats wrong
What is the difference between javascript and vbscript?
How can you destroy an object in vbscript?