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 / lak
Function value(arg1,arg2,N)
N1=arg1+arg2
N2=arg1-arg2
N3=arg1*arg2
N4=arg1/arg2
Value= N
End Function
call value(10,10,N1)
msgbox N1
call value(10,10,N2)
msgbox N2
call value(10,10,N3)
msgbox N3
call value(10,10,N4)
msgbox N4
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is resorceallocation
Which command is used for writing text on a page?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
Mention what is the difference between vbscript and vba?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
Which in-built function is used to format the number in the vbscript language?
Explain about vb script?
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
How will you release the memory acquired by an array variable in vbscript?
Explain what is loose binding? Why is it not a good practice to use it?
What is the difference between a dictionary and an array?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
Explain about .wsf files?
How should i Create Email invite with server-side Coding?
Explain the asc function?