![]() |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Functions and Procedures IntroductionFunctions and procedures are named blocks of code that perform an action. In general, a function returns data and a procedure does not. Procedures Sub procname (arg1, arg2, ..) [code] End SubThe call statement can be used to call a procedure call procname(arg1,arg2) Functions Function nameoffunction() [code] nameoffunction = somevalue End FunctionThe function can be called in the code as follows valuereturned = nameoffunction()The value returned by the function is stored in the variable valuereturned. Another way of doing this is as follows. msgbox "Your value is " & nameoffunction()
|
|
|
|
Added to the Web: May 26, 2000. Web page design by Dan Solarek. |
![]() http://cset.sp.utoledo.edu/cset3250/ |