Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 C# 中,如果你想从函数中返回,你可以这样做:
If (Something == True) { //Message Box Return; } Else { // Do nothing }
VB 6 如何做到这一点?
在 VB6 中,您编写
FunctionName = ReturnValue
是的,认真的。
要停止执行函数,请使用Exit Function(或Exit Sub)
Exit Function
Exit Sub