C
Clark Stevens
I have a program that I'm converting from VB6 to VB.NET. It reads in a text
file containing barcode numbers and their corresponding descriptions. Then
the user enters the barcode number and the program finds the matching
barcode description.
In VB6 I used an UDT to store the barcode number along with the description.
Then I declared an array of the barcode UDT.
I'm thinking of converting the UDT to a structure in VB.NET and doing
something like this:
Structure BCStructure
BCNumber as Integer
BCDescription as String
End Structure
Public BC() as BCStructure
Is there a more efficient way to handle this in VB.NET? Should I setup a
barcode class and use an object collection instead? What are the
advantages/disadvantages?
All suggestions welcome
file containing barcode numbers and their corresponding descriptions. Then
the user enters the barcode number and the program finds the matching
barcode description.
In VB6 I used an UDT to store the barcode number along with the description.
Then I declared an array of the barcode UDT.
I'm thinking of converting the UDT to a structure in VB.NET and doing
something like this:
Structure BCStructure
BCNumber as Integer
BCDescription as String
End Structure
Public BC() as BCStructure
Is there a more efficient way to handle this in VB.NET? Should I setup a
barcode class and use an object collection instead? What are the
advantages/disadvantages?
All suggestions welcome