brendan.hill
Member
- Joined
- Jun 20, 2010
- Messages
- 15
- Programming Experience
- 10+
Weird. This code produces Nothing instead of "":
Why ideas why? It should return "" instead of Nothing as that's the parameter's default value.
Cheers,
-Brendan
VB.NET:
Public Function get_value(Optional ByVal alternative_value As String = "") As Object
Return alternative_value
End Function
dim d as object = get_value()
Why ideas why? It should return "" instead of Nothing as that's the parameter's default value.
Cheers,
-Brendan
Last edited: