Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCSD > VB 6.0 vs VB.Net

Thread Tools

VB 6.0 vs VB.Net

Kline Sphere
Posts: n/a
>I don't know I think Microsoft made a lot from them, lol

And now you now the importance of a good and ruthless marketing
Reply With Quote
Tore Bostrup
Posts: n/a
Actually - VB was Bill Gates' baby. Not that he fathered it - but he
championed it *very* strongly. He wanted a "Basic" for Windows.


"Kline Sphere" <T> wrote in message
news:(E-Mail Removed)...
> >I don't know I think Microsoft made a lot from them, lol

> And now you now the importance of a good and ruthless marketing
> division......

Reply With Quote
Kline Sphere
Posts: n/a
>He wanted a "Basic" for Windows.

.... and got basic windows.
Reply With Quote
Tore Bostrup
Posts: n/a
No - he had that... :->

"Kline Sphere" <-> wrote in message
news:(E-Mail Removed)...
> >He wanted a "Basic" for Windows.

> ... and got basic windows.

Reply With Quote
prijil prijil is offline
Junior Member
Join Date: Nov 2010
Posts: 1
Let us see Some of the key changes requiring redesign under VB.Net compared to VB 6.0.

Add-In Model has Changed:

Add-Ins are still supported but the underlying extensibility object model has changed and existing add-ins will need to be rewritten. In some cases existing add-ins may no longer be needed as the new IDE is much more robust than the old IDE and also supports the creation of macros. For those that are still needed the new extensibility model is much more complete.

Date and Time are renamed:

In VB.Net the Today function replaces the old Date function and TimeOfDay replaces the Time function. The main difference between VB.Net and earlier versions is that Date/Time values used to be stored as double-precision values and could be manipulated directly. In VB.Net the internal format for dates and times has been changed and is not directly accessible.

File I/O statements have changed:

The VB.Net language does support some basic file I/O operations in the form of functions:


FileOpen(Channel, FilePath, OpenMode, OpenAccess, OpenShare, RecordSize)
Read data:

FileGet(Channel, DataBuffer, RecordNumber, ArrayIsDynamic, StringIsFixedLength)
Input(Channel, DataBuffer)
DataBuffer = LineInput(Channel)

Write data:

FilePut(Channel, DataBuffer, RecordNumber, ArrayIsDynamic, StringIsFixedLength)
Print(Channel, DataBuffer)
PrintLine(Channel, Data{, Data...})
Write(Channel, Data{, Data...})


Reset() ' close all files

Strings in VB.Net:

The String data type and basic string operations are essentially unchanged in VB.Net. Strings are still unicode and can be manipulated as in earlier versions. Due to the nature of the object-oriented underpinnings of dotnet, however, there are some new performance considerations and some new ways to do things.

Once created, a String in VB.Net is immutable which means that it cannot be modified. That sounds contradictory but what it really means is that any time you make a change to a string value the original string is destroyed and a new string is created. The same was essentially true in earlier versions of VB except that the MID statement could be used to modify an existing string without needing to allocate an entire new string in memory. This technique was frequently used to provide a performance boost but is no longer possible. The MID statement is still supported syntactically but it still creates a new string.

Controls have been redesigned with many properties/methods removed or renamed.

For example the Listbox control in VB 6.0 presented a list of text strings to the user for selection. The VB.Net Listbox control is much more powerful in that it holds an array of objects instead of just strings. The display can be set to present any property of the objects (all objects must expose the same property name) and the click event returns a reference to the individual object. The control also supports using multiple columns, tab stops and sorting on demand.

DAO/RDO Data Binding is not supported by the new controls.

Data Binding is directly supported by the VB.Net controls using ADO.

Parameters are passed ByVal by default.

Control Arrays are gone.

Fixed length strings are gone.

Gosub, On/Gosub, On/Goto are gone.

Names with leading underscores are not hidden.

Implements implementation has changed.

Null is now DBNull.

Property syntax has changed.

ObjPtr, VarPtr and StrPtr are gone.

No more SET and limited default properties.

Static procedures are not supported.

Types are now Structures and LSET is gone.

Variant, Empty, Null, Missing, IsNull and IsMissing are missing.

WebClasses, ActiveX Documents and DHTML projects are now WebForms/ASP+.

While/Wend is now While/End While.

No more windowless controls.

API Calls need updating.

DIM As New is different.

Arrays are always base Zero.

VB.Net is not based on COM.

Integer and Long are redefined.

MsgBox defaults are different.

ParamArrays are passed ByVal instead of ByRef.

Property references can be passed ByRef.

Currency data type is gone.

DEFxxx statements not supported.

DIM does not default to Object.

DIM can be restricted in scope.

ENUMs must be explicity identified.
Thus these are some key changes requiring redesign under VB.Net compared to VB 6.0.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off