当前位置:编程学习 > C#/ASP.NET >>

函数和变量

自定义函数有一个和其同名的变量吗
如:
Function SelectEntities(ByRef Data As StSfDualGussetVar, ByRef ConnID As Long) As Boolean

SelectEntities可以作为变量在函数体内使用? --------------------编程问答-------------------- 你可以理解为函数名代表的变量就是返回值。
Function SelectEntities(ByRef Data As StSfDualGussetVar, ByRef ConnID As Long) As Boolean
    Return True
End Function
等价
Function SelectEntities(ByRef Data As StSfDualGussetVar, ByRef ConnID As Long) As Boolean
    SelectEntities = True
End Function
补充:.NET技术 ,  VB.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,