• 您的位置我爱Aspx >> VB.Net >> Chapter 3 Major VB.NET Changes(3)
  • Chapter 3 Major VB.NET Changes(3)

  • 作者:aspxer  来源:internet  日期:2007-5-20 14:01:38  关键字:.net
  • 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:

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:ReDim Preserve 執行效能上的陷阱(转)
    下一篇:Chapter 4 Building Classes and Assemblies with VB.NET