VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Retuning multiple parameters from functions

Phobos  (6 Submissions)   Data Structures   Visual Basic 3.0   Beginner   Wed 3rd February 2021

VB provides a very easy way in which to pass multiple parameters to subroutines and functions.
Whilst it is possible to return the results of processing in the passed parameters it is not very good practice, but many programmers do it anyway because they believe that VB functions will only return one parameter.
This simple example shows a clean method of returning as many parameters as you like from a function without resorting to modifying the passed parameters.

Rate Retuning multiple parameters from functions (6(6 Vote))
Retuning multiple parameters from functions.bas

Retuning multiple parameters from functions Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters