VB.net programming Elements Support Change summary

Source: Internet
Author: User
Tags case statement new set rtrim sin

Visual Basic 2005 Changes the way it supports various programming elements, primarily to provide interoperability with the common language runtime. Many Visual Basic 6.0 elements are renamed, re-categorized, or combined with other programming elements of Visual Basic 2005. Support for several elements is canceled because the functionality in the common language runtime (CLR) makes it unnecessary for these elements to exist. For more information, see Common Language runtime.
For additional information about Visual Basic changes-including the integrated development environment (IDE), WEB features, projects, forms, constants, and the Circle, line, and Pset methods, see Help for users of Visual Basic 6.0.
Changing the element
The following table lists the programmatic elements that have changed and their alternative elements.

Visual Basic 6.0 Programming elements Visual Basic 2005 equivalent namespace, class, or runtime location
Abs method
System namespace, Math class

AscB function Asc function
Visual Basic Run-time library member, Strings module

As any key word groups are not supported in Visual Basic 2005. See declaring syntax (for Visual Basic 6.0 Users).
Not applicable
Atan method of Atn function
System namespace, Math class

Calendar Property CurrentCulture Property
System.Globalization namespace, CultureInfo class

ChDir Statement ChDir function
Visual Basic Run-time library member, FileSystem module

ChDrive Statement ChDrive function
Visual Basic Run-time library member, FileSystem module

chr$, ChrB, function Chr function
Visual Basic Run-time library member, Strings module

The Close statement FileClose function
Visual Basic Run-time library member, FileSystem module

Cos method
System namespace, Math class

Currency data type Decimal data type; see Data type changes (for Visual Basic 6.0 Users)
Visual Basic Run-time library member, VariantType enumeration

CVDate function DateValue function
Visual Basic Run-time library member, DateAndTime module

CVERR function Error Statement
Not applicable
Date function, date statement now property, Today property
Visual Basic Run-time library member, DateAndTime module

date$ Function DateString Property
Visual Basic Run-time library member, DateAndTime module

Debug.Assert method Assert, Failure method
System.Diagnostics namespace, Debug class

Debug.Print Methods Write,writeif,writeline and WriteLineIf methods
System.Diagnostics namespace, Debug class

The Deftype statement is not supported in Visual Basic 2005. See Data type changes (for Visual Basic 6.0 Users)
Not applicable
DeleteSetting Statement DeleteSetting function
Visual Basic Run-time library member, Interaction module

DoEvents function DoEvents method
System.Windows.Forms namespace, Application class

Empty keyword None
Not applicable
Eqv operator = operator; see logical operators (for Visual Basic 6.0 Users)
Not applicable
Exp Function Exp Method
System namespace, Math class

FileCopy Statement FileCopy function
Visual Basic Run-time library member, FileSystem module

Get Statement FileGet function
Visual Basic Run-time library member, FileSystem module

GoSub statements are not supported in Visual Basic 2005; Use the Return statement. See Control statements (for Visual Basic 6.0 Users).
Not applicable
The IMP operator is not supported in Visual Basic 2005. See not and OR operators, as well as logical operators (for Visual Basic 6.0 Users).
Not applicable
Initialize event is not supported in Visual Basic 2005, use Sub New. See Class_Initialize changes (for Visual Basic 6.0 Users) and using constructors and destructors
Not applicable
Input #, input$ statement, input$, InputB, inputb$ function Input function
Visual Basic Run-time library member, FileSystem module

The Instancing property is not supported in Visual Basic 2005. For class-level declarations, see Private (Visual Basic) and public (Visual Basic). For procedure-level declarations, see Shared (Visual Basic).
Not applicable
InStrB function InStr function
Visual Basic Run-time library member, Strings module

IsEmpty function IsNothing function
Visual Basic Run-Time library member, information module

The IsMissing function is not supported in Visual Basic 2005. See procedure declarations (for Visual Basic 6.0 Users).
Not applicable
IsNull function IsDbNull function
Visual Basic Run-Time library member, information module

IsObject function IsReference function
Visual Basic Run-Time library member, information module

Kill statement Kill function
Visual Basic Run-time library member, FileSystem module

lcase$ function LCase function
Visual Basic Run-time library member, Strings module

left$, LeftB, leftb$ function Left function
Visual Basic Run-time library member, Strings module

LenB function Len function
Visual Basic Run-time library member, Strings module

Let, set assignment statements are not supported in Visual Basic 2005; The new set statement is not related to the old statement. See Default property changes (for Visual Basic 6.0 Users).
Not applicable
Line Input # statement LineInput function
Visual Basic Run-time library member, FileSystem module

Load Statement New (Visual Basic) keyword, Show method, Load event
Visual Basic Run-time library members, System.Windows.Forms namespaces
Lock statement Lock, Unlock function
Visual Basic Run-time library member, FileSystem module

Log function Log method
System namespace, Math class

LSet, RSet statements LSet functions, PadRight, PadLeft; see Data type changes (for Visual Basic 6.0 Users)
Visual Basic Run-time library member, Strings module, System namespace, String class

ltrim$ function LTrim function
Visual Basic Run-time library member, Strings module

MidB function Mid function
Visual Basic Run-time library member, Strings module

MidB Statement Mid statement
Visual Basic Run-time library member, Strings module

MkDir Statement MkDir function
Visual Basic Run-time library member, FileSystem module

The Name statement Rename function
Visual Basic Run-time library member, FileSystem module

Now function now property
Visual Basic Run-time library member, DateAndTime module

Null keyword None
Not applicable
oct$ function Oct function
Visual Basic Run-time library member, Conversion module

On ... GoSub constructs are not supported in Visual Basic 2005; Please use SELECT ... Case statement. See Control statements (for Visual Basic 6.0 Users).
Not applicable
On ... GoTo constructs are not supported in Visual Basic 2005; Please use SELECT ... Case statement. See Control statements (for Visual Basic 6.0 Users).
Not applicable
Open Statement FileOpen function
Visual Basic Run-time library member, FileSystem module

The Option Base statement is not supported in Visual Basic 2005. See array bounds (for Visual Basic 6.0 Users).
Not applicable
Option Privatemodule statement is not supported in Visual Basic 2005; Use the Module statement.
Not applicable
Print # statement print, PrintLine function
Visual Basic Run-time library member, FileSystem module

Property Get, Property Let, property Set statements are not supported in Visual Basic 2005. See Property procedure changes (for Visual Basic 6.0 Users).
Not applicable
Put Statement FilePut function
Visual Basic Run-time library member, FileSystem module

Reset Statement Reset function
Visual Basic Run-time library member, FileSystem module

right$, RightB function Right function
Visual Basic Run-time library member, Strings module

RmDir Statement RmDir function
Visual Basic Run-time library member, FileSystem module

Round function Round method
System namespace, Math class

RSet, LSet statement RSet function; see Data type changes (for Visual Basic 6.0 Users)
Visual Basic Run-time library member, Strings module

rtrim$ function RTrim function
Visual Basic Run-time library member, Strings module

SaveSetting Statement SaveSetting function
Visual Basic Run-time library member, Interaction module

The scale method does not support non-applicable in Visual Basic 2005
Set, let assignment statements are not supported in Visual Basic 2005; The new set statement is not related to the old statement. See Default property changes (for Visual Basic 6.0 Users)
Not applicable
SetAttr Statement SetAttr function
Visual Basic Run-time library member, FileSystem module

SGN function Sign function
System namespace, Math class

Sin function sin method
System namespace, Math class

SQR function Sqrt function
System namespace, Math class

string function string constructor; see string ($) function (for Visual Basic 6.0 Users)
System namespace, String class

The String ($) function is not supported in Visual Basic 2005. See string ($) function (for Visual Basic 6.0 Users).
Not applicable
Terminate events are not supported in Visual Basic 2005; Use sub Dispose and sub Finalize. See Using constructors and destructors.
Not applicable
Time function, time statement TimeOfDay property; see DateTime structure, Date data type
Visual Basic Run-time library member, DateAndTime module

time$ function TimeString Property
Visual Basic Run-time library member, DateAndTime module

Timer Function Timer Property
Visual Basic Run-time library member, DateAndTime module

trim$ functions LTrim, RTrim, and Trim functions
Visual Basic Run-time library member, Strings module

The Type statement is not supported in Visual Basic 2005; Use the Structure statement. See struct declarations (for Visual Basic 6.0 Users).
Not applicable
ucase$ function UCase function
Visual Basic Run-time library member, Strings module

Unlock statement Lock, Unlock function
Visual Basic Run-time library member, FileSystem module

Variant data type Object data type; see Common data type changes (for Visual Basic 6.0 Users)
Not applicable
Wend keyword while ... End While statement and end statement; see control statements (for Visual Basic 6.0 Users)
Not applicable
Width # statement FileWidth function
Visual Basic Run-time library member, FileSystem module

Write # statement Write, WriteLine function
Visual Basic Run-time library member, FileSystem module

Article "Programming Elements support Change Summary"

VB.net programming Elements Support Change summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.