ASP ClassicLesson 30Free preview
ASP Procedures
This lesson is part of ASP · All levels
Summary
The procedure in Classic ASP is written with Sub for the action without return value and Function for the function that returns the value. The parameter is sent via ByVal to use a copy of the value, and the return value Function is obtained by assigning the value to the name of the function itself. The procedure makes code more modular and reduces repetition of logic.
Key points
- Sub runs without a return value, returns a value.
- The argument is sent through the parameters inside the cage.
- ByVal copied the values, ByRef forwarded the references.
- The return value Function is set by writing the value to the function name.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.