我爱Aspx >> VB.Net >> Chapter 3 Major VB.NET Changes(3)Chapter 3 Major VB.NET Changes(3)
B6, you could call this sub in one of two ways:
foo “Hello ”
Call foo(“Hello ”)
In VB.NET, you also could call this sub in one of two ways:
Foo(“Hello ”)
Call foo(“Hello ”)
The difference, of course, is that the parentheses are always required in the VB.NET
calls, even though you aren’t returning anything. The Call statement is still sup-ported,
but it is not really necessary.
Changes to Boolean Operators
The And , Not , and Or operators were to have undergone some changes. Microsoft
originally said that the operators would short-circuit, but now they are staying the
way they worked in VB6. This means that in VB.NET, as in VB6, if you had two
parts of an And statement and the first failed, VB6 still examined the second part.
Examine the following code:
【我对这篇文章有话说?】
Chapter 4 Building Classes and..[05-20]
Chapter 3 Major VB.NET Changes..[05-20]
Chapter 3 Major VB.NET Changes..[05-20]
Chapter 2 Your First VB.NET(2)[05-20]
Chapter 2 Your First VB.NET(1)[05-20]
VB.NET 的新特点:变量,类型,数..[05-20]
VB.NET Samples(送给Blood等VB拥..[05-20]
HOW TO: Compute and Compare Ha..[05-20]
为什么选择VB.NET?(转贴)[05-20]
从VB6到VB.NET的变化综述 (转)[05-20]
Chapter 4 Building Classes and..[05-20]
Chapter 3 Major VB.NET Changes..[05-20]
Chapter 3 Major VB.NET Changes..[05-20]
Chapter 2 Your First VB.NET(2)[05-20]
Chapter 2 Your First VB.NET(1)[05-20]
VB.NET 的新特点:变量,类型,数..[05-20]
VB.NET Samples(送给Blood等VB拥..[05-20]
HOW TO: Compute and Compare Ha..[05-20]
为什么选择VB.NET?(转贴)[05-20]
从VB6到VB.NET的变化综述 (转)[05-20]