What are the differences between routines, subroutines

1 Answers
Answered by suresh

Differences Between Routines and Subroutines in VBScript

Differences Between Routines and Subroutines in VBScript

When it comes to VBScript programming, it is important to understand the differences between routines and subroutines. While both serve similar purposes, there are key distinctions that set them apart.

Routines

Routines in VBScript are blocks of code that can be called multiple times within a script. They are typically used to perform specific tasks or calculations and can return a value if needed. Routines are more flexible and versatile compared to subroutines.

Subroutines

Subroutines, on the other hand, are similar to routines but do not return a value. They are used to execute a series of instructions or tasks without the need for a specific output. Subroutines are ideal for organizing code and improving readability.

Overall, the main difference between routines and subroutines in VBScript lies in their return value capability. Routines can return values while subroutines cannot. Understanding when to use each type of procedure is essential for efficient VBScript programming.

Answer for Question: What are the differences between routines, subroutines