
.NET/VB.NET
文章平均质量分 79
Terry001
这个作者很懒,什么都没留下…
展开
-
VB.NET模块的总结(一)
Option Explicit On默认就是on,意思是变量必须声明(一般用Dim声明变量),不声明编译就会出错Option Explicit 语句:用于在文件级强制对该文件中的所有变量进行显式声明。Option Explicit { On | Off }各部分说明On 可选。启用 Option Explicit 检查。如果在 Option Explicit 语句后没有指定 On原创 2007-08-10 23:25:00 · 1718 阅读 · 0 评论 -
VB.NET类的总结(一)
Module Module1 Sub Main() Dim theFirstInstanceOfTestscope As New TestScope theFirstInstanceOfTestscope.TestScopeSubMethodOne() TestScope.TestScopeSubMethodOne() Dim aStr As String = th原创 2007-08-27 21:39:00 · 2402 阅读 · 0 评论 -
VB.NET模块的总结(二)
Module1.vb文件中的代码:Module MainClas Sub Main() Dim theFirstInstanceOfTestscope As New TestScope theFirstInstanceOfTestscope.TestScopeSubMethodOne() Dim aStr As String = theFirstInstanceOf原创 2007-08-27 22:01:00 · 1421 阅读 · 0 评论 -
VB.NET模块的总结(一)精简版
Module Module1 Public aNew As String 全局公共成员变量,可以在当前项目的任何类和模块中引用 Dim aNew As String 模块的成员变量(字段)绝对不会出现形如:Public Dim aNew As String 的声明 Sub Main() Console.WriteLine("hello, word!") aMetho原创 2007-08-27 22:57:00 · 2142 阅读 · 0 评论