Re: How to create Functions in VBScript?
The following example demonstrates the creating and calling a VBScript function.
Code:
<script type="text/vbscript">
Function add(number1,number2)
add = number1 + number2
End Function
Dim total
total = add(15,10)
document.write(total)
</script>
Using the above code, the following output will be produced:
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks