How to pass the parameter from one function to another
function in VB Scripting?

Answer Posted / vaishnavi murugan

dim a
a=10
b=20

call value(a,b)

function value(a,b)
c = a+b
msgbox c

call val1(c)
end function

function val1(c)
d = c+2

msgbox d
end function

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are arrays declared in the vbscript language?

543


What is vbscript procedures?

602


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2504


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1442


Mention what is vbscript?

598






Description.Create

2162


Explain about the extension .hta?

625


after medical test,when will be the police verification

1717


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1805


Why is the use of exit do or exit for statements within loops discouraged?

569


What is the use of the formatdatetime function in the vbscript language?

554


Which function is used in the vbscript language to convert the specified expression into a date type value?

525


What is the difference between function and procedure?

575


How can you create a file object to work with the files in the vbscript language?

509


What is the purpose of on error resume next statement?

579