Home > Common Problem > What is the most fundamental difference between sub procedure and function procedure?

What is the most fundamental difference between sub procedure and function procedure?

hzc
Release: 2020-06-18 16:07:53
Original
7745 people have browsed it

What is the most fundamental difference between sub procedure and function procedure?The most fundamental difference between the sub procedure and the function procedure is that the Sub procedure cannot return a value, but the Function procedure can return a value.

There are two types of procedures in Visual Basic:

① Internal functions and event procedures provided by the system;

② User-defined according to their own needs , for multiple calls to the event process, among which the sub-process is the most used. What they have in common is a set of program codes that perform a specific function; the difference is that a function is a special procedure with a return value, so the function procedure definition has a type specification of the return value.

The above is the detailed content of What is the most fundamental difference between sub procedure and function procedure?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template