In visual basic what is wrong with this line of code Functio
In visual basic, what is wrong with this line of code?
Function ReturnString(ByRef strReturn as String)
Solution
Answer:-
The Syntax of the Function in Visual Basic:-
Function FunctionName( ) As ReturnType
So the wrong with the given line of code is You didn\'t declare the Return Type.
The Correct Line of Code:-
Function ReturnString(ByRef strReturn As String) As String
Explanation:-
In Visual Basic Functions return a value so that return type represents the data type of the return value the function returns.
