VB Structure

Declaring Structure in VB2005

A structure can be declared inside of a class or module block. A Structure can also be declared at the file level(outside of a class or module block).

A structure block can contain a nested structure block.

A structure block can not appear inside of a procedure block.

Example of a structure declaration is shown below.

Public Class frmSaleProcessing
      Public Structure sales
          Public billId As String
          Public prodCode As String
          Public productDescription As String
          Public salesDate As DateTime
          Public paidAmt As String
          Public salesAssociate As String
      End Structure

      Private Sub btnOpenFile_Click(by val....

            ' other Code

      End Sub
End Class