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

in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


generic function for webedit box for web application

1 Answers  


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1 Answers  


how to increase the values in text box in a given text box increament by two values by clicking on button

1 Answers  


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

1 Answers   Quest,


Explain about adodb.stream class?

1 Answers  


Which keyword is used to declare a variable in the vbscript language?

1 Answers  


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1 Answers   iFlex,


What is the use of option explicit statement?

1 Answers  


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1 Answers  


How can I access an object in another frame?

1 Answers  


How to Enter Values on the Command promt using VB script

1 Answers  


Categories