Functions (VBScript)
In VBScript, a function is a type of programming function that returns a value. The only difference between a function in VBScript and a procedure in VBScript is that a function returns a value.
The syntax for a function in VBScript is as follows:
Dim Name
Name = GetUserName()
MsgBox(Name)
Function GetUserName()
GetUserName = InputBox("Please enter your name")
End Function
page revision: 0, last edited: 19 May 2008 00:30