Function doesn't return a value on all code paths Vb.net

我怕爱的太早我们不能终老 提交于 2019-12-02 09:02:38

Your Function Fn1 doesn't return anything.

Functions by definition return something. If you want a method that doesn't return anything you should declare it Sub instead of Function

Your function should also declare the data type is is returning:

Public Function Concat(s1 As String, s2 As String) As String
    return s1 & s2
End Function
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!