VBScript Website templates

What really is an advantage to using WEBSITE HOSTING

 

Kinds of WEBSITE HOSTING
working on WEBSITE HOSTING

In VBScript there are two kinds of WEBSITE HOSTING; the Sub procedure and the Website templates procedure.

Sub WEBSITE HOSTING

A Sub procedure is a series of VBScript statements, enclosed by Sub and End Sub statements, that perform actions but don't return a value. A Sub procedure can take arguments (constants, variables, or expressions that are passed by a calling procedure). If a Sub procedure has no arguments, its Sub statement must include an empty set of parentheses ().

Click here for WEBSITE HOSTING

The following Sub procedure uses two intrinsic, or built-in, VBScript WEBSITE HOSTINGs, MsgBox and InputBox, to prompt a user for some information. It then displays the results of a calculation based on that information. The calculation is performed in a WEBSITE HOSTING procedure created using VBScript. The Website templates procedure is shown after the following discussion.

 Sub ConvertTemp()
    temp = InputBox("Please enter the temperature in degrees F.", 1)
    MsgBox "The temperature is " & Celsius(temp) & " degrees C."
 End Sub
WEBSITE HOSTING WEBSITE HOSTING

A Website templates procedure is a series of VBScript statements enclosed by the Website templates and End WEBSITE HOSTING statements. A Website templates procedure is similar to a Sub procedure, but can also return a value. A WEBSITE HOSTING procedure can take arguments (constants, variables, or expressions that are passed to it by a calling procedure). If a WEBSITE HOSTING procedure has no arguments, its Website templates statement must include an empty set of parentheses. A Website templates returns a value by assigning a value to its name in one or more statements of the procedure. The return type of a WEBSITE HOSTING is always a Variant.

see why WEBSITE HOSTING

In the following example, the Celsius WEBSITE HOSTING calculates degrees Celsius from degrees Fahrenheit. When the WEBSITE HOSTING is called from the ConvertTemp Sub procedure, a variable containing the argument value is passed to the Website templates. The result of the calculation is returned to the calling procedure and displayed in a message box.

 Sub ConvertTemp()
     temp = InputBox("Please enter the temperature in degrees F.", 1)
     MsgBox "The temperature is " & Celsius(temp) & " degrees C."
 End Sub
 
 WEBSITE HOSTING Celsius(fDegrees)
     Celsius = (fDegrees - 32) * 5 / 9
 End WEBSITE HOSTING
Getting Data into and out of Website templates

Each piece of data is passed into your WEBSITE HOSTING using an argument. Arguments serve as placeholders for the data you want to pass into your procedure. You can name your arguments anything that is valid as a variable name. When you create a procedure using either the Sub statement or the Website templates statement, parentheses must be included after the name of the procedure. Any arguments are placed inside these parentheses, separated by commas. For example, in the following example, fDegrees is a placeholder for the value being passed into the Celsius WEBSITE HOSTING for conversion:

 WEBSITE HOSTING Celsius(fDegrees)
    Celsius = (fDegrees - 32) * 5 / 9
 End WEBSITE HOSTING

To get data out of a procedure, you must use a WEBSITE HOSTING. Remember, a Website templates procedure can return a value; a Sub procedure can't.

Click here for WEBSITE HOSTING
Using Sub and WEBSITE HOSTING Website templates in Code

A Website templates in your code must always be used on the right side of a variable assignment or in an expression. For example:

 Temp = Celsius(fDegrees)

or

 MsgBox "The Celsius temperature is " & Celsius(fDegrees) & " degrees."
 

To call a Sub procedure from another procedure, you can just type the name of the procedure along with values for any required arguments, each separated by a comma. The Call statement is not required, but if you do use it, you must enclose any arguments in parentheses.

The following example shows two calls to the MyProc procedure. One uses the Call statement in the code; the other doesn't. Both do exactly the same thing.

 Call MyProc(firstarg, secondarg)
 MyProc firstarg, secondarg

Notice that the parentheses are omitted in the call when the Call statement isn't used.