Low cost ecommerce web development India flash website design

SUBROUTINES, FUNCTIONS AND INCLUDES

Like any programming language worth it's salt, VBScript allows you to define and use your own Subroutines, Functions & Includes. Subroutines Subroutines are defined via the Sub keyword. A subroutine may accept parameters too, which can be of any type. Parameters do not have defined types; their usage determines the type. All parameter types are variants by default. Subroutines cannot return a value; that is, they can only be called, their value cannot be used. To return values to calling programs, we use Functions. Functions Functions are defined similar to Subroutines: As seen above, the function Add adds two numbers and returns their result. You can call this function as: which will produce the sum as the output. More complex processing may be done inside function bodies.  

freelance web designer India web development

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73