module 7
A function is similar to a normal procedure but the main purpose of the function is to accept a certain input and return a value, which is passed on to the main program to finish the execution. There are two types of functions, the built-in functions (or internal functions) and the functions created by the programmers. The general format of a function is FunctionName (arguments) The arguments are values that are passed on to the function. In this Chapter, we are going to learn two very basic but useful internal functions of Visual Basic, i.e. the MsgBox( ) and InputBox ( ) functions. Summary You learned that a function is a procedure that accepts an input and returns a value, which is passed on to the main program to finish the execution. You also learned that the format of a function is FunctionName (arguments). In section 10.1, you learned to use the Msg () function to produce a popup message box...
Comments
Post a Comment