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



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

Answer / 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

More VB Script Interview Questions

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

0 Answers  


Differentiate javascript and vbscript?

0 Answers  


Explain about filter expression?

0 Answers  


how to write code: to check whether the window of an Application Under Test exist or not . plz give with example

2 Answers  


input values to accept 2 numbers & print the product, difference and sum using switch case

1 Answers   CSC,






Mention characteristics of sub procedures?

0 Answers  


int a=4857 i need output as 7584.without using any inbuild function?

6 Answers   Aspire,


How many types of procedures are available in the vbscript language?

0 Answers  


Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.

2 Answers   CSS Corp,


How to return a value from function...? you should not tell msgbox, print.. etc.,

6 Answers  


What purpose does ‘on error resume next’ serves?

0 Answers  


Which in-built function related to an array joins substrings into one string in the vbscript language?

0 Answers  


Categories