Computer Science, asked by sanjupathak12ayushi, 1 year ago

What is a sub-procedure ? Explain with an example

Answers

Answered by yash551
2
A Sub procedure is a series of Visual Basic statements enclosed by the Sub and End Sub statements. The Sub procedure performs a task and then returns control to the calling code, but it does not return a value to the calling code.+

Each time the procedure is called, its statements are executed, starting with the first executable statement after the Substatement and ending with the first End Sub, Exit Sub, or Return statement encountered.

You can define a Sub procedure in modules, classes, and structures. By default, it is Public, which means you can call it from anywhere in your application that has access to the module, class, or structure in which you defined it. The term, method, describes a Sub or Function procedure that is accessed from outside its defining module, class, or structure. For more information, see Procedures.

A Sub procedure can take arguments, such as constants, variables, or expressions, which are passed to it by the calling code


sanjupathak12ayushi: But I want in short
Answered by nikhilkumard633
0

Answer:

what is a sub procedure explain with an example

Similar questions