VBScript: Functions and Loops - Sub Procedures
(Page 2 of 6 )
A sub procedure is similar to a function, except that it does not return a result.
<html>
<head>
<script type="text/vbscript">
sub meatballSub()
msgbox("Look at me! I'm a sub procedure!")
end sub
</script>
</head>
<body>
<script type="text/vbscript">
call meatballSub()
</script>
</body>
</html>
This results in a pop-up box that displays the text: Look at me! I'm a sub procedure!
Next: Loop Flakes...They're Great! >>
More BrainDump Articles
More By James Payne