How to Write Functions in VB (Major Error Correction)
Today I’m going to teach everyone how to write their own functions. First, you need to know the syntax for functions. Also, you must place your own functions at the very bottom of the program. Syntax: Function FunctionName(Byval Parameter As ParameterType,Byval Parameter As ParameterType) FunctionName = (what the function does) End Function A quick explanation: you can name the function whatever you like, and you don’t need to wrap the name in double quotes. Parameters are optional. Whether you need them depends on what the function does. If the function needs to receive values, you have to set them up. ...