Tuesday, April 24, 2007

Fixed Length String in Visual Basic.NET

Yes this can be done quite simply:

Structure Student
Public ID As Integer
Public DatofBirth As Date
<VBFixedString(15)>Public FirstName As String
<VBFixedString(15)>Public Surname As String
End Structure

For more details check out this MSDN article.

No comments: