新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 软件开发 > .Net开发 > Asp.net教程 > 正文:Chapter 3 Major VB.NET Changes(1)

Chapter 3 Major VB.NET Changes(1)

新客网 XKER.COM 2003-07-12 来源: 收藏本文
Major VB.NET Changes
VB.NET introduces major changes to the VB language. Some
are modifications to existing ways of working, whereas others
are brand new. This chapter will cover some of those
changes, but this is by no means an exhaustive list of all
changes from VB to VB.NET. First, you’ll see some of the
features that have changed. Then you will see some of the
new features.
General Changes
There are a number of general changes to be aware of when
moving from VB to VB.NET. Among them are topics such as
the removal of default properties, subs and functions requir-ing
parentheses, ByVal being the default method for passing
parameters, and changes to the logical operators. These
changes, and others, are detailed in this section.
Default Properties
In VB6, objects could have default properties. For example,
the following code is perfectly valid in VB6, if you assume
that Text1 is a text box:
Text1=”Hello,World ”
This code takes the string “Hello,World ”and sets the
default property of the text box, the Text property, to the
string. The major drawback to default properties is that they
require you to have a Set command in VB. For example, take
a look at the following block of VB6 code:
CHAPTER 3
Major VB.NET Changes
收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
阅读排行
随机推荐
实用信息推荐