home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form TYPEForm
- Caption = "Functions returning custom types"
- ClientHeight = 4500
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6165
- LinkTopic = "Form1"
- ScaleHeight = 4500
- ScaleWidth = 6165
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "Show Next"
- BeginProperty Font
- Name = "Verdana"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 4320
- TabIndex = 0
- Top = 3840
- Width = 1695
- End
- Begin VB.Label Label12
- Caption = "BALANCE"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 12
- Top = 3000
- Width = 1935
- End
- Begin VB.Label Label11
- Caption = "COUNTRY"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 3240
- TabIndex = 11
- Top = 2040
- Width = 2415
- End
- Begin VB.Label Label10
- Caption = "CITY"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 10
- Top = 2040
- Width = 1335
- End
- Begin VB.Label Label9
- Caption = "ADDRESS"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 9
- Top = 1080
- Width = 2415
- End
- Begin VB.Label Label8
- Caption = "CUSTOMER SINCE"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 3630
- TabIndex = 8
- Top = 90
- Width = 2055
- End
- Begin VB.Label Label7
- Caption = "COMPANY"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 7
- Top = 120
- Width = 2175
- End
- Begin VB.Label lblBALANCE
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 6
- Top = 3360
- Width = 2055
- End
- Begin VB.Label lblSINCE
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3630
- TabIndex = 5
- Top = 480
- Width = 2385
- End
- Begin VB.Label lblCOUNTRY
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3240
- TabIndex = 4
- Top = 2325
- Width = 2775
- End
- Begin VB.Label lblCITY
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 3
- Top = 2325
- Width = 2775
- End
- Begin VB.Label lblADDRESS
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 1395
- Width = 5775
- End
- Begin VB.Label lblCOMPANY
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 480
- Width = 3135
- End
- Attribute VB_Name = "TYPEForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim aCustomer As Customer
- Static currentIndex As Integer
- currentIndex = currentIndex + 1
- If currentIndex = CountCustomers() Then currentIndex = 1
- aCustomer = GetCustomer(currentIndex)
- lblCOMPANY.Caption = aCustomer.Company
- lblSINCE.Caption = aCustomer.CustomerSince
- lblADDRESS.Caption = aCustomer.Address
- lblCITY.Caption = aCustomer.City
- lblCOUNTRY = aCustomer.Country
- lblBALANCE.Caption = aCustomer.Balance
- End Sub
- Private Sub Form_Load()
- Call InitData
- End Sub
-