COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button
ADVANCE VB SCRIPT FUNCTION PARAMETERS
Function Parameters
Till now, we have seen function without a parameter, but there is
a facility to pass different parameters while calling a function.
These passed parameters can be captured inside the function and
any manipulation can be done over those parameters. The Functions
are called using the Call Keyword.
<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">
Function sayHello(name, age)
msgbox( name & " is " & age & " years old.")
End Function
Call sayHello("Tutorials point", 7)
</script>
</body>
</html>
No comments:
Post a Comment