home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmExpenses
- Caption = "Public 2-year College Expenses"
- ClientHeight = 3168
- ClientLeft = 936
- ClientTop = 2208
- ClientWidth = 3960
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 7.8
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3168
- ScaleWidth = 3960
- Begin VB.PictureBox picTable
- BeginProperty Font
- Name = "Courier New"
- Size = 10.2
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2295
- Left = 240
- ScaleHeight = 2244
- ScaleWidth = 3444
- TabIndex = 1
- Top = 120
- Width = 3495
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Expenses"
- Height = 375
- Left = 960
- TabIndex = 0
- Top = 2640
- Width = 2295
- End
- Attribute VB_Name = "frmExpenses"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplay_Click()
- Dim fmt1 As String, fmt2 As String
- Dim col1 As String, col2 As String
- 'Average expenses of commuter students (1995-96)
- picTable.Cls
- picTable.Print Tab(19); "Pb 2-yr"
- picTable.Print
- fmt1 = "@@@@@@@@@@@@@@@@@" '17 @ symbols
- fmt2 = "@@@@@@" '6 @ symbols
- col1 = Format("Tuition & Fees", fmt1)
- col2 = FormatNumber(1387, 0)
- col2 = Format(col2, fmt2)
- picTable.Print col1; Tab(19); col2
- col1 = Format("Books & Supplies", fmt1)
- col2 = FormatNumber(577, 0)
- col2 = Format(col2, fmt2)
- picTable.Print col1; Tab(19); col2
- col1 = Format("Board", fmt1)
- col2 = FormatNumber(1752, 0)
- col2 = Format(col2, fmt2)
- picTable.Print col1; Tab(19); col2
- col1 = Format("Transportation", fmt1)
- col2 = FormatNumber(894, 0)
- col2 = Format(col2, fmt2)
- picTable.Print col1; Tab(19); col2
- col1 = Format("Other Expenses", fmt1)
- col2 = FormatNumber(1142, 0)
- col2 = Format(col2, fmt2)
- picTable.Print col1; Tab(19); col2
- picTable.Print Tab(19); "------"
- col1 = Format("Total", fmt1)
- col2 = FormatNumber(5752, 0)
- col2 = Format(col2, fmt2)
- picTable.Print col1; Tab(19); col2
- End Sub
-