How to Pass Multiple values in functions by using vb script?
Function value(arg1,arg2)
N1=arg1+arg2
N2=arg1-agr2
N3=arg1*agr2
N4=arg1/arg2
Value= How to pass ?
End Function
Answer Posted / sureshkumar
Function value(a1,a2, res)
res=a1+a2
res=a1-a2
return res
End Function
call value(10,10,res)
print res[0]
print res[1]
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
In what way program "hello world" you can write in vbscript?
How to take whole text output from screen of Bitmap Application.
Mention what is the use of option explicit in vbscript?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
what is resorceallocation
Explain the functionality of vbscript?
write any ttest cases using check points and parameterization
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
Why is the use of exit do or exit for statements within loops discouraged?
Explain the extension .hta?
Explain the arrays in vb script?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.