
Convert Type to a Structure
How do I change this vb5 code to .net code.
VB5
Public Type RecordType
NoteName As String * 50
NoteCode As String * 1000
End Type
Public MyNotes As RecordType
I've tried the following but I get an error. I need the strings to be
a length that allows reading a record from a file.
Structure RecordType
Public NoteName as String=New String(" "c,50)
Public NoteCode as String=New String(" "c,1000)
End Structure
Public MyNotes As RecordType