Question: what is the difference between function and sub procedures in vb.net?
Answer: VBA Sub vs Function: Key Differences A sub performs a task but does not return a value. A function returns a value of the tasks performed. Subs can be recalled from anywhere in the program and in multiple types. ... Functions can be used to perform repetitive tasks and return a value.