示例
Structure Person
Public ID As Integer
Public MonthlySalary As Decimal
Public LastReviewDate As Long
<VBFixedString(15)> Public FirstName As String
<VBFixedString(15)> Public LastName As String
<VBFixedString(15)> Public Title As String
<VBFixedString(150)> Public ReviewComments As String
End Structure
参见
Attributes | VBFixedArrayAttribute Class | ComClassAttribute Class | Attributes Used in Visual Basic .NET | Declaring Variables for Random File Access | FileGet Function | FilePut Function | FileOpen Function