I know this may sound like a dumb question but I got to know since I have been trying to find an answer but can’t find any. I noticed that in some functions, after the parentheses, the function is assigned a type? For example
Public Function getConn(ByVal AppId As String, ByVal TranId As String) As String
and it returns a value call sRet
After the parentheses, why is there an “As String”?
It’s defining the return type.
If you did something like
then connection would be a string, that probably contains the connection string.
You can do other return types as well, such as Int, Float etc.