"Attibute" in VB 6

cBarry263

Active member
Joined
Oct 29, 2005
Messages
42
Location
Maryland
Programming Experience
Beginner
Guys,
I'm converting a VB 6 app to VB.NET, howerver the VB 6 code has some modules that say "BEGIN" and "END" at the top, and they also have an "ATTRIBUTE" at the top. I have never seen this before, could someone explain what these are used for and what their equivilant would be in .NET?
 
VERSION 1.0 CLASS
BEGIN
MultiUse = -1
'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "ODBCapi"
Attribute VB_GlobalNameSpace =
False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
 
in .net the "Standard" is to save data like that as xml files, so i would guess that xml is the equivalent of the vb6 attribute

but for vb 1 through 6, MS used the keywords Begin and End to specify segments when saving large amounts of data (like a program project) it's a thing of the past now
 
there are several xml readers (objects) that you can use, look at the System.IO namespace to start
 
Back
Top