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

What is Procedure or Subroutine in VB Script?

0 Answers  


What is Querystring collection?

0 Answers  


how to genarate a random numbers in vb?

2 Answers  


i have to open a notepad having no. of words in dat file by recording in qtp and then find a particular word and display true or false

0 Answers  


Which event is triggered when mouse focus comes out of an element in the vbscript language?

0 Answers  






How can the spaces from the string be removed?

0 Answers  


Mention how to access array data?

0 Answers  


How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script?

6 Answers   Nous,


How will you compare two strings in vbscript?

0 Answers  


How to find arry size in qtp vb script

2 Answers   Cap Gemini,


Both Static and dynamic arrays are handled by VB script. Is it true?

0 Answers  


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

0 Answers  


Categories