home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l406 / 4.ddi / COLLEGE.FR_ / COLLEGE.bin (.txt)
Encoding:
Visual Basic Form  |  1992-10-21  |  27.3 KB  |  877 lines

  1. VERSION 2.00
  2. Begin Form frmCollege 
  3.    BackColor       =   &H00FF0000&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "College Goal # 1"
  6.    Height          =   4320
  7.    Icon            =   COLLEGE.FRX:0000
  8.    Left            =   1335
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MDIChild        =   -1  'True
  12.    ScaleHeight     =   3690
  13.    ScaleWidth      =   7215
  14.    Top             =   495
  15.    Width           =   7275
  16.    Begin TextBox txtColIntRate 
  17.       Height          =   285
  18.       Left            =   3150
  19.       MaxLength       =   4
  20.       TabIndex        =   7
  21.       Top             =   2415
  22.       Width           =   525
  23.    End
  24.    Begin TextBox txtColSaved 
  25.       Height          =   285
  26.       Left            =   3150
  27.       MaxLength       =   7
  28.       TabIndex        =   6
  29.       Top             =   2100
  30.       Width           =   990
  31.    End
  32.    Begin HScrollBar HsbColYears 
  33.       Height          =   285
  34.       Left            =   3540
  35.       Max             =   10
  36.       Min             =   1
  37.       TabIndex        =   13
  38.       Top             =   1800
  39.       Value           =   4
  40.       Width           =   1155
  41.    End
  42.    Begin TextBox txtColYears 
  43.       Height          =   285
  44.       Left            =   3150
  45.       MaxLength       =   2
  46.       TabIndex        =   5
  47.       Text            =   "4"
  48.       Top             =   1800
  49.       Width           =   375
  50.    End
  51.    Begin TextBox txtColIncrease 
  52.       Height          =   285
  53.       Left            =   3150
  54.       MaxLength       =   4
  55.       TabIndex        =   4
  56.       Top             =   1500
  57.       Width           =   525
  58.    End
  59.    Begin TextBox txtColAnnCost 
  60.       Height          =   285
  61.       Left            =   3150
  62.       MaxLength       =   7
  63.       TabIndex        =   3
  64.       Top             =   1200
  65.       Width           =   990
  66.    End
  67.    Begin HScrollBar HsbColAge 
  68.       Height          =   285
  69.       Left            =   3555
  70.       Max             =   50
  71.       Min             =   1
  72.       TabIndex        =   12
  73.       Top             =   900
  74.       Value           =   19
  75.       Width           =   1155
  76.    End
  77.    Begin TextBox txtColAge 
  78.       Height          =   285
  79.       Left            =   3150
  80.       MaxLength       =   2
  81.       TabIndex        =   2
  82.       Text            =   "19"
  83.       Top             =   900
  84.       Width           =   375
  85.    End
  86.    Begin HScrollBar HsbAge 
  87.       Height          =   285
  88.       Left            =   3555
  89.       Max             =   50
  90.       Min             =   1
  91.       TabIndex        =   11
  92.       Top             =   585
  93.       Value           =   1
  94.       Width           =   1155
  95.    End
  96.    Begin TextBox txtAge 
  97.       Height          =   285
  98.       Left            =   3150
  99.       MaxLength       =   2
  100.       TabIndex        =   1
  101.       Text            =   "1"
  102.       Top             =   585
  103.       Width           =   375
  104.    End
  105.    Begin TextBox txtColName 
  106.       Height          =   285
  107.       Left            =   3150
  108.       MaxLength       =   20
  109.       TabIndex        =   0
  110.       Top             =   270
  111.       Width           =   1575
  112.    End
  113.    Begin CommandButton CmdCalc 
  114.       Caption         =   "&Calc Results"
  115.       Default         =   -1  'True
  116.       Height          =   405
  117.       Left            =   1125
  118.       TabIndex        =   8
  119.       Top             =   2775
  120.       Width           =   1335
  121.    End
  122.    Begin CommandButton CmdGrid 
  123.       BackColor       =   &H00FFFFFF&
  124.       Caption         =   "&Grid Results"
  125.       Height          =   405
  126.       Left            =   2910
  127.       TabIndex        =   9
  128.       Top             =   2775
  129.       Width           =   1335
  130.    End
  131.    Begin CommandButton CmdGraph 
  132.       Caption         =   "G&raph Results"
  133.       Height          =   405
  134.       Left            =   4620
  135.       TabIndex        =   10
  136.       Top             =   2775
  137.       Width           =   1335
  138.    End
  139.    Begin PictureBox Picture1 
  140.       BackColor       =   &H00C0C0C0&
  141.       Height          =   465
  142.       Left            =   -15
  143.       ScaleHeight     =   435
  144.       ScaleWidth      =   7230
  145.       TabIndex        =   14
  146.       Top             =   3240
  147.       Width           =   7260
  148.       Begin Line Line16 
  149.          BorderColor     =   &H00FFFFFF&
  150.          X1              =   7125
  151.          X2              =   7125
  152.          Y1              =   105
  153.          Y2              =   345
  154.       End
  155.       Begin Line Line15 
  156.          BorderColor     =   &H00FFFFFF&
  157.          X1              =   5325
  158.          X2              =   7125
  159.          Y1              =   345
  160.          Y2              =   345
  161.       End
  162.       Begin Line Line14 
  163.          BorderColor     =   &H00808080&
  164.          X1              =   5325
  165.          X2              =   7140
  166.          Y1              =   105
  167.          Y2              =   105
  168.       End
  169.       Begin Line Line13 
  170.          BorderColor     =   &H00808080&
  171.          X1              =   5325
  172.          X2              =   5325
  173.          Y1              =   105
  174.          Y2              =   345
  175.       End
  176.       Begin Line Line12 
  177.          BorderColor     =   &H00FFFFFF&
  178.          X1              =   3600
  179.          X2              =   4785
  180.          Y1              =   345
  181.          Y2              =   345
  182.       End
  183.       Begin Line Line11 
  184.          BorderColor     =   &H00FFFFFF&
  185.          X1              =   4770
  186.          X2              =   4770
  187.          Y1              =   105
  188.          Y2              =   345
  189.       End
  190.       Begin Line Line10 
  191.          BorderColor     =   &H00808080&
  192.          X1              =   3585
  193.          X2              =   4770
  194.          Y1              =   105
  195.          Y2              =   105
  196.       End
  197.       Begin Line Line9 
  198.          BorderColor     =   &H00808080&
  199.          X1              =   3570
  200.          X2              =   3570
  201.          Y1              =   105
  202.          Y2              =   345
  203.       End
  204.       Begin Line Line8 
  205.          BorderColor     =   &H00FFFFFF&
  206.          X1              =   1185
  207.          X2              =   2790
  208.          Y1              =   345
  209.          Y2              =   345
  210.       End
  211.       Begin Line Line7 
  212.          BorderColor     =   &H00FFFFFF&
  213.          X1              =   2790
  214.          X2              =   2790
  215.          Y1              =   120
  216.          Y2              =   345
  217.       End
  218.       Begin Line Line6 
  219.          BorderColor     =   &H00808080&
  220.          X1              =   1200
  221.          X2              =   2805
  222.          Y1              =   105
  223.          Y2              =   105
  224.       End
  225.       Begin Line Line5 
  226.          BorderColor     =   &H00808080&
  227.          X1              =   1185
  228.          X2              =   1185
  229.          Y1              =   105
  230.          Y2              =   345
  231.       End
  232.       Begin Label lblAmtMonthly 
  233.          BackColor       =   &H0000FFFF&
  234.          BackStyle       =   0  'Transparent
  235.          Height          =   195
  236.          Left            =   3600
  237.          TabIndex        =   20
  238.          Top             =   135
  239.          Width           =   1200
  240.       End
  241.       Begin Label Label14 
  242.          Alignment       =   1  'Right Justify
  243.          AutoSize        =   -1  'True
  244.          BackColor       =   &H00808080&
  245.          BackStyle       =   0  'Transparent
  246.          Caption         =   "Monthly:"
  247.          ForeColor       =   &H00FF0000&
  248.          Height          =   195
  249.          Left            =   2835
  250.          TabIndex        =   19
  251.          Top             =   135
  252.          Width           =   735
  253.       End
  254.       Begin Label LblColTotalCost 
  255.          BackColor       =   &H0000FFFF&
  256.          BackStyle       =   0  'Transparent
  257.          Height          =   200
  258.          Left            =   5325
  259.          TabIndex        =   18
  260.          Top             =   135
  261.          Width           =   1800
  262.       End
  263.       Begin Label Label10 
  264.          Alignment       =   1  'Right Justify
  265.          AutoSize        =   -1  'True
  266.          BackColor       =   &H00808080&
  267.          BackStyle       =   0  'Transparent
  268.          Caption         =   "Total:"
  269.          ForeColor       =   &H00FF0000&
  270.          Height          =   195
  271.          Left            =   4785
  272.          TabIndex        =   17
  273.          Top             =   135
  274.          Width           =   540
  275.       End
  276.       Begin Label LblAmtYearly 
  277.          BackColor       =   &H0000FFFF&
  278.          BackStyle       =   0  'Transparent
  279.          Height          =   200
  280.          Left            =   1185
  281.          TabIndex        =   16
  282.          Top             =   135
  283.          Width           =   1605
  284.       End
  285.       Begin Label Label11 
  286.          Alignment       =   1  'Right Justify
  287.          AutoSize        =   -1  'True
  288.          BackColor       =   &H00808080&
  289.          BackStyle       =   0  'Transparent
  290.          Caption         =   "Save Yearly:"
  291.          ForeColor       =   &H00FF0000&
  292.          Height          =   195
  293.          Left            =   90
  294.          TabIndex        =   15
  295.          Top             =   135
  296.          Width           =   1095
  297.       End
  298.       Begin Line Line1 
  299.          BorderColor     =   &H00808080&
  300.          X1              =   75
  301.          X2              =   7170
  302.          Y1              =   60
  303.          Y2              =   60
  304.       End
  305.       Begin Line Line2 
  306.          BorderColor     =   &H00808080&
  307.          X1              =   60
  308.          X2              =   60
  309.          Y1              =   60
  310.          Y2              =   405
  311.       End
  312.       Begin Line Line3 
  313.          BorderColor     =   &H00FFFFFF&
  314.          X1              =   60
  315.          X2              =   7170
  316.          Y1              =   390
  317.          Y2              =   390
  318.       End
  319.       Begin Line Line4 
  320.          BorderColor     =   &H00FFFFFF&
  321.          X1              =   7170
  322.          X2              =   7170
  323.          Y1              =   60
  324.          Y2              =   390
  325.       End
  326.    End
  327.    Begin PictureBox Picture2 
  328.       BackColor       =   &H00FF0000&
  329.       BorderStyle     =   0  'None
  330.       FillColor       =   &H0000FFFF&
  331.       ForeColor       =   &H0000FFFF&
  332.       Height          =   3375
  333.       Left            =   5865
  334.       Picture         =   COLLEGE.FRX:0302
  335.       ScaleHeight     =   3375
  336.       ScaleWidth      =   1395
  337.       TabIndex        =   21
  338.       Top             =   15
  339.       Width           =   1395
  340.    End
  341.    Begin Label Label9 
  342.       AutoSize        =   -1  'True
  343.       BackColor       =   &H00FF0000&
  344.       Caption         =   "College and Student Information"
  345.       ForeColor       =   &H0000FFFF&
  346.       Height          =   195
  347.       Left            =   3135
  348.       TabIndex        =   32
  349.       Top             =   15
  350.       Width           =   2790
  351.    End
  352.    Begin Label Label5 
  353.       Alignment       =   1  'Right Justify
  354.       BackColor       =   &H0000FFFF&
  355.       BackStyle       =   0  'Transparent
  356.       Caption         =   "Annual increase in cost of college:"
  357.       ForeColor       =   &H0000FFFF&
  358.       Height          =   255
  359.       Left            =   30
  360.       TabIndex        =   31
  361.       Top             =   1515
  362.       Width           =   3015
  363.    End
  364.    Begin Label Label4 
  365.       Alignment       =   1  'Right Justify
  366.       BackStyle       =   0  'Transparent
  367.       Caption         =   "Current annual cost of college:"
  368.       ForeColor       =   &H0000FFFF&
  369.       Height          =   255
  370.       Left            =   390
  371.       TabIndex        =   30
  372.       Top             =   1215
  373.       Width           =   2655
  374.    End
  375.    Begin Label Label3 
  376.       Alignment       =   1  'Right Justify
  377.       BackStyle       =   0  'Transparent
  378.       Caption         =   "College Age:"
  379.       ForeColor       =   &H0000FFFF&
  380.       Height          =   255
  381.       Left            =   1890
  382.       TabIndex        =   29
  383.       Top             =   915
  384.       Width           =   1155
  385.    End
  386.    Begin Label Label2 
  387.       Alignment       =   1  'Right Justify
  388.       BackStyle       =   0  'Transparent
  389.       Caption         =   "Age:"
  390.       ForeColor       =   &H0000FFFF&
  391.       Height          =   255
  392.       Left            =   2610
  393.       TabIndex        =   28
  394.       Top             =   615
  395.       Width           =   435
  396.    End
  397.    Begin Label Label1 
  398.       Alignment       =   1  'Right Justify
  399.       BackColor       =   &H00FFFFFF&
  400.       BackStyle       =   0  'Transparent
  401.       Caption         =   "Student Name:"
  402.       ForeColor       =   &H0000FFFF&
  403.       Height          =   255
  404.       Left            =   1710
  405.       TabIndex        =   27
  406.       Top             =   315
  407.       Width           =   1335
  408.    End
  409.    Begin Label Label6 
  410.       Alignment       =   1  'Right Justify
  411.       BackStyle       =   0  'Transparent
  412.       Caption         =   "Number of years in college:"
  413.       ForeColor       =   &H0000FFFF&
  414.       Height          =   255
  415.       Left            =   630
  416.       TabIndex        =   26
  417.       Top             =   1815
  418.       Width           =   2415
  419.    End
  420.    Begin Label Label7 
  421.       Alignment       =   1  'Right Justify
  422.       BackStyle       =   0  'Transparent
  423.       Caption         =   "Amount saved for this student:"
  424.       ForeColor       =   &H0000FFFF&
  425.       Height          =   255
  426.       Left            =   30
  427.       TabIndex        =   25
  428.       Top             =   2130
  429.       Width           =   3015
  430.    End
  431.    Begin Label Label8 
  432.       Alignment       =   1  'Right Justify
  433.       BackStyle       =   0  'Transparent
  434.       Caption         =   "Annual Rate of Return:"
  435.       ForeColor       =   &H0000FFFF&
  436.       Height          =   255
  437.       Left            =   870
  438.       TabIndex        =   24
  439.       Top             =   2415
  440.       Width           =   2175
  441.    End
  442.    Begin Label Label12 
  443.       BackColor       =   &H00FF0000&
  444.       Caption         =   "%"
  445.       ForeColor       =   &H0000FFFF&
  446.       Height          =   195
  447.       Left            =   3720
  448.       TabIndex        =   23
  449.       Top             =   1530
  450.       Width           =   255
  451.    End
  452.    Begin Label Label13 
  453.       BackColor       =   &H00FF0000&
  454.       Caption         =   "%"
  455.       ForeColor       =   &H0000FFFF&
  456.       Height          =   195
  457.       Left            =   3720
  458.       TabIndex        =   22
  459.       Top             =   2460
  460.       Width           =   255
  461.    End
  462.    Begin Menu mnuFile 
  463.       Caption         =   "&File"
  464.       Begin Menu mnuNewCGoal 
  465.          Caption         =   "New &College Goal..."
  466.       End
  467.       Begin Menu mnuNewGGoal 
  468.          Caption         =   "New &General Goal..."
  469.       End
  470.       Begin Menu mnuDash 
  471.          Caption         =   "-"
  472.       End
  473.       Begin Menu mnuNewSPlan 
  474.          Caption         =   "&New Savings Plan"
  475.       End
  476.       Begin Menu mnuOpenSPlan 
  477.          Caption         =   "&Open Savings Plan..."
  478.       End
  479.       Begin Menu mnuSaveSPlan 
  480.          Caption         =   "&Save Savings Plan"
  481.       End
  482.       Begin Menu mnuSaveAsSPlan 
  483.          Caption         =   "Save Saving Plan &As..."
  484.       End
  485.       Begin Menu mnuDash2 
  486.          Caption         =   "-"
  487.       End
  488.       Begin Menu mnuExit 
  489.          Caption         =   "E&xit"
  490.       End
  491.    End
  492.    Begin Menu mnuGraph 
  493.       Caption         =   "Gr&aph"
  494.       Begin Menu mnuSelGraph 
  495.          Caption         =   "&Selected Goal"
  496.       End
  497.       Begin Menu mnuComGraph 
  498.          Caption         =   "&Combined Goals"
  499.       End
  500.    End
  501.    Begin Menu mnuGrid 
  502.       Caption         =   "Gr&id"
  503.       Begin Menu mnuSelGrid 
  504.          Caption         =   "&Selected Goal"
  505.       End
  506.       Begin Menu mnuComGrid 
  507.          Caption         =   "&Combined Goals"
  508.       End
  509.    End
  510.    Begin Menu mnuOpt 
  511.       Caption         =   "&Options"
  512.       Begin Menu mnuToolbar 
  513.          Caption         =   "&Toolbar"
  514.          Checked         =   -1  'True
  515.       End
  516.    End
  517.    Begin Menu mnuWindow 
  518.       Caption         =   "&Window"
  519.       WindowList      =   -1  'True
  520.       Begin Menu mnuCascade 
  521.          Caption         =   "&Cascade"
  522.       End
  523.       Begin Menu mnuArrangeIcons 
  524.          Caption         =   "&Arrange Icons"
  525.       End
  526.    End
  527.    Begin Menu mnuHelp 
  528.       Caption         =   "&Help"
  529.       Begin Menu mnuHelpInstructions 
  530.          Caption         =   "&Instructions"
  531.       End
  532.       Begin Menu mnuHelpDash 
  533.          Caption         =   "-"
  534.       End
  535.       Begin Menu mnuHelpAbout 
  536.          Caption         =   "&About..."
  537.       End
  538.    End
  539. Dim LocalGoalType As String
  540. Dim LocalFormNumb As Variant
  541. Sub CheckEntries ()
  542.     'Checks to see if enough information is filled out
  543.     'to allow calculation or graph and grid
  544.     If (Val(txtAge) >= 1 And Val(txtAge) <= 50) And (Val(txtColAge) >= 1 And Val(txtColAge) <= 50) And Val(txtColAge) > Val(txtAge) And Val(txtColAnnCost) > 0 And Val(txtColIncrease) > 0 And Val(txtColIncrease) <= 50 And Val(txtColIntRate) > 0 And Val(txtColIntRate) <= 50 And (Val(txtColYears) >= 1 And Val(txtColYears) <= 10) Then
  545.         cmdCalc.Enabled = True: cmdGraph.Enabled = True: cmdGrid.Enabled = True
  546.         ButtonsVisible
  547.         mnuGraph.Visible = True
  548.         mnuGrid.Visible = True
  549.     Else
  550.         cmdCalc.Enabled = False: cmdGraph.Enabled = False: cmdGrid.Enabled = False
  551.         ButtonsHide
  552.         mnuGraph.Visible = False
  553.         mnuGrid.Visible = False
  554.     End If
  555. End Sub
  556. Sub CheckHide ()
  557.     'Checks to see if the graph and grid buttons should be hidden
  558.     HideButtons = True
  559.     For i = 0 To forms.Count - 1
  560.         If (forms(i).Tag = "College" Or forms(i).Tag = "General") And forms(i).Caption <> Caption Then
  561.             HideButtons = False
  562.         End If
  563.     Next
  564.     If HideButtons Then ButtonsHide
  565. End Sub
  566. Sub CmdCalc_Click ()
  567.     lblAmtYearly = Format$(colpmt(Val(txtColAnnCost), Val(txtColIncrease) / 100, Val(txtColIntRate) / 100, Val(txtColAge) - Val(txtAge), Val(txtColYears), Val(txtColSaved), 1), " $##,###,###,###")
  568.     lblAmtMonthly = Format$(colpmt(Val(txtColAnnCost), Val(txtColIncrease) / 100, Val(txtColIntRate) / 100, Val(txtColAge) - Val(txtAge), Val(txtColYears), Val(txtColSaved), 2), " $##,###,###,###")
  569.     LblColTotalCost = Format$(TotalColCost, " $##,###,###,###")
  570.     'change the default button to be the grid button
  571.     cmdCalc.Default = False: cmdGrid.Default = True
  572. End Sub
  573. Sub CmdGraph_Click ()
  574.     IntRate = txtColIntRate / 100
  575.     Divider = 100
  576.     Periods = Val(txtColAge) - Val(txtAge) + Val(txtColYears) - 1
  577.     AmtToSave = colpmt(Val(txtColAnnCost), Val(txtColIncrease) / Divider, Val(txtColIntRate) / Divider, Val(txtColAge) - Val(txtAge), Val(txtColYears), Val(txtColSaved), 1)
  578.     'Call the GraphIt routine
  579.     GraphIt (Tag), txtColName, IntRate, Periods, Val(txtColSaved), AmtToSave, TotalColCost, Val(txtColAge), Val(txtAge), Divider, Val(txtColAnnCost), Val(txtColIncrease), 2
  580. End Sub
  581. Sub CmdGrid_Click ()
  582.     FormNumb = LocalFormNumb: GoalType = LocalGoalType
  583.     cmdCalc.Value = -1
  584.     'change the default button to be the graph button
  585.     cmdGrid.Default = False: cmdGraph.Default = True
  586.     'call the GridSetup routine
  587.     GridSetup 2, txtColName, Val(txtColAge) - Val(txtAge) + Val(txtColYears) - 1, 0, Val(txtColIntRate), Val(txtColSaved), Val(txtColAge), Val(txtAge), Val(txtColYears), Val(txtColAnnCost), Val(txtColIncrease)
  588. End Sub
  589. Sub Form_Activate ()
  590.     CheckEntries
  591. End Sub
  592. Sub Form_Deactivate ()
  593.     CheckHide
  594. End Sub
  595. Sub Form_Load ()
  596.     LocalGoalType = "College"
  597.     LocalFormNumb = ColForm
  598.     Col(ColForm).Caption = "College Goal #" + Str$(ColForm + 1)
  599.     Col(ColForm).Tag = "College" '
  600.     ColForm = ColForm + 1
  601.     'Disable buttons till enough information is filled out
  602.     cmdCalc.Enabled = False: cmdGraph.Enabled = False: cmdGrid.Enabled = False
  603. End Sub
  604. Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
  605.     CheckHide
  606. End Sub
  607. Sub HsbAge_Change ()
  608.     'Change the text when the horizontal scroll bar changes
  609.     txtAge = HsbAge
  610. End Sub
  611. Sub HsbAge_Scroll ()
  612.     'Change the text when the horizontal scroll bar changes
  613.     txtAge = HsbAge
  614. End Sub
  615. Sub HsbColAge_Change ()
  616.     'Change the text when the horizontal scroll bar changes
  617.      txtColAge = HsbColAge
  618. End Sub
  619. Sub HsbColAge_Scroll ()
  620.     'Change the text when the horizontal scroll bar changes
  621.     txtColAge = HsbColAge
  622. End Sub
  623. Sub HsbColYears_Change ()
  624.     'Change the text when the horizontal scroll bar changes
  625.     txtColYears = HsbColYears
  626. End Sub
  627. Sub HsbColYears_Scroll ()
  628.     'Change the text when the horizontal scroll bar changes
  629.     txtColYears = HsbColYears
  630. End Sub
  631. Sub mnuArrangeIcons_Click ()
  632.     'Arrange all iconized child forms
  633.     frmMDI.Arrange ARRANGE_ICONS
  634. End Sub
  635. Sub mnuCascade_Click ()
  636.     'Cascade child forms
  637.     frmMDI.Arrange CASCADE
  638. End Sub
  639. Sub mnuComGraph_Click ()
  640.     'Graph the combined graph
  641.     FormSelectProc "Graph"
  642. End Sub
  643. Sub mnuComGrid_Click ()
  644.     'Grid the combined grid
  645.     FormSelectProc "Grid"
  646. End Sub
  647. Sub mnuExit_Click ()
  648.     'When the user chooses File Exit in an MDI Application, unload
  649.     'the MDI form to invoke the QueryUnload event for every open child.
  650.     Unload frmMDI
  651.     If SelectCancel = True Then
  652.         Exit Sub
  653.     End If
  654.     End
  655. End Sub
  656. Sub mnuHelpAbout_Click ()
  657.    frmAbout.Show 1
  658. End Sub
  659. Sub mnuHelpInstructions_Click ()
  660.     ' Display Help
  661.     R = WinHelp(hWnd, App.HelpFile, HELP_INDEX, 0)
  662. End Sub
  663. Sub mnuNewCGoal_Click ()
  664.     'New College goal
  665.     NewCGoal
  666. End Sub
  667. Sub mnuNewGGoal_Click ()
  668.     'New General goal
  669.     NewGGoal
  670. End Sub
  671. Sub mnuNewSPlan_Click ()
  672.     If NeedToSave Then CheckToSave
  673.     If SelectCancel = True Then
  674.         Exit Sub
  675.     End If
  676.     NewSavePlan
  677.     MsgBox "Choose New College Goal or New General Goal"
  678. End Sub
  679. Sub mnuOpenSPlan_Click ()
  680.     If NeedToSave Then CheckToSave
  681.     If SelectCancel = True Then
  682.         Exit Sub
  683.     End If
  684.     NewSavePlan
  685.     FOpenProc
  686. End Sub
  687. Sub mnuSaveAsSPlan_Click ()
  688.     For i = 0 To forms.Count - 1
  689.         If forms(i).Tag = "College" Or forms(i).Tag = "General" Then
  690.             SavePlanNeeded = True
  691.         End If
  692.     Next
  693.     If SavePlanNeeded Then SaveAsPlan
  694. End Sub
  695. Sub mnuSaveSPlan_Click ()
  696.     For i = 0 To forms.Count - 1
  697.         If forms(i).Tag = "College" Or forms(i).Tag = "General" Then
  698.             SavePlanNeeded = True
  699.         End If
  700.     Next
  701.     If SavePlanNeeded Then SavePlan
  702. End Sub
  703. Sub mnuSelGraph_Click ()
  704.     'Click the Graph button on the form
  705.     cmdGraph.Value = -1
  706. End Sub
  707. Sub mnuSelGrid_Click ()
  708.     'Click the Grid button on the form
  709.     cmdGrid.Value = -1
  710. End Sub
  711. Sub mnuToolbar_Click ()
  712.     OptionsToolbarProc Me
  713. End Sub
  714. Sub txtAge_Change ()
  715.    If IsNumeric(txtAge) And (Val(txtAge) >= 1 And Val(txtAge) <= 50) Then
  716.         txtAge = CLng(txtAge)
  717.         HsbAge = txtAge
  718.     End If
  719.     CheckEntries
  720.     NeedToSave = True
  721. End Sub
  722. Sub txtAge_GotFocus ()
  723.     'Select whatever is already typed for editing
  724.     txtAge.SelStart = 0
  725.     txtAge.SelLength = Len(txtAge.Text)
  726. End Sub
  727. Sub txtAge_LostFocus ()
  728.    'Update horizontal scroll bar
  729.    If IsNumeric(txtAge) And (Val(txtAge) >= 1 And Val(txtAge) <= 50) Then
  730.         txtAge = CLng(txtAge)
  731.         HsbAge = txtAge
  732.         
  733.    ElseIf txtAge = "" Then
  734.         txtAge = 1
  735.    Else
  736.         MsgBox "This entry needs to be numeric and between 1-50!"
  737.         txtAge.SetFocus
  738.    End If
  739. End Sub
  740. Sub txtColAge_Change ()
  741.     If IsNumeric(txtColAge) And (Val(txtColAge) >= 1 And Val(txtColAge) <= 50) Then
  742.         txtColAge = CLng(txtColAge)
  743.         HsbColAge = txtColAge
  744.     End If
  745.     CheckEntries
  746.     NeedToSave = True
  747. End Sub
  748. Sub txtColAge_GotFocus ()
  749.     'Select whatever is already typed for editing
  750.     txtColAge.SelStart = 0
  751.     txtColAge.SelLength = Len(txtColAge.Text)
  752. End Sub
  753. Sub txtColAge_LostFocus ()
  754.    'Update horizontal scroll bar
  755.     If IsNumeric(txtColAge) And (Val(txtColAge) >= 1 And Val(txtColAge) <= 50) Then
  756.         txtColAge = CLng(txtColAge)
  757.         HsbColAge = txtColAge
  758.         
  759.     ElseIf txtColAge = "" Then
  760.         txtColAge = 19
  761.     Else
  762.         MsgBox "This entry needs to be numeric, between 1-50 and > Age !"
  763.         txtColAge.SetFocus
  764.     End If
  765. End Sub
  766. Sub txtColAnnCost_Change ()
  767.     CheckEntries
  768.     NeedToSave = True
  769. End Sub
  770. Sub txtColAnnCost_GotFocus ()
  771.     'Select whatever is already typed for editing
  772.     txtColAnnCost.SelStart = 0
  773.     txtColAnnCost.SelLength = Len(txtColAnnCost.Text)
  774. End Sub
  775. Sub txtColAnnCost_LostFocus ()
  776.    'Update horizontal scroll bar
  777.     If IsNumeric(txtColAnnCost) Then
  778.         txtColAnnCost = CLng(txtColAnnCost)
  779.     ElseIf txtColAnnCost = "" Then
  780.     Else
  781.         MsgBox "This entry needs to be numeric!"
  782.         txtColAnnCost.SetFocus
  783.     End If
  784. End Sub
  785. Sub txtColIncrease_Change ()
  786.     CheckEntries
  787.     NeedToSave = True
  788. End Sub
  789. Sub txtColIncrease_GotFocus ()
  790.     'Select whatever is already typed for editing
  791.     txtColIncrease.SelStart = 0
  792.     txtColIncrease.SelLength = Len(txtColIncrease.Text)
  793. End Sub
  794. Sub txtColIncrease_LostFocus ()
  795.    'Update horizontal scroll bar
  796.     If IsNumeric(txtColIncrease) And Val(txtColIncrease) <= 50 Then
  797.         txtColIncrease = CSng(txtColIncrease.Text)
  798.     ElseIf txtColIncrease = "" Then
  799.     Else
  800.        MsgBox "This entry needs to be numeric and <= 50!"
  801.        txtColIncrease.SetFocus
  802.     End If
  803. End Sub
  804. Sub txtColIntRate_Change ()
  805.     CheckEntries
  806.     NeedToSave = True
  807. End Sub
  808. Sub txtColIntRate_GotFocus ()
  809.     'Select whatever is already typed for editing
  810.     txtColIntRate.SelStart = 0
  811.     txtColIntRate.SelLength = Len(txtColIntRate.Text)
  812. End Sub
  813. Sub txtColIntRate_LostFocus ()
  814.     'Update horizontal scroll bar
  815.     If IsNumeric(txtColIntRate) And Val(txtColIntRate) <= 50 Then
  816.         txtColIntRate = CSng(txtColIntRate)
  817.     ElseIf txtColIntRate = "" Then
  818.     Else
  819.         MsgBox "This entry needs to be numeric and <= 50"
  820.         txtColIntRate.SetFocus
  821.     End If
  822. End Sub
  823. Sub txtColName_Change ()
  824.     NeedToSave = True
  825. End Sub
  826. Sub txtColName_GotFocus ()
  827.     'Select whatever is already typed for editing
  828.     txtColName.SelStart = 0
  829.     txtColName.SelLength = Len(txtColName.Text)
  830. End Sub
  831. Sub txtColName_LostFocus ()
  832.     If txtColName <> "" Then
  833.         Caption = txtColName
  834.     End If
  835. End Sub
  836. Sub txtColSaved_Change ()
  837.     NeedToSave = True
  838. End Sub
  839. Sub txtColSaved_GotFocus ()
  840.     'Select whatever is already typed for editing
  841.     txtColSaved.SelStart = 0
  842.     txtColSaved.SelLength = Len(txtColSaved.Text)
  843. End Sub
  844. Sub txtColSaved_LostFocus ()
  845.     If IsNumeric(txtColSaved) Then
  846.         txtColSaved = CLng(txtColSaved)
  847.     ElseIf txtColSaved = "" Then
  848.     Else
  849.         MsgBox "This entry needs to be numeric!"
  850.         txtColSaved.SetFocus
  851.     End If
  852. End Sub
  853. Sub txtColYears_Change ()
  854.     If IsNumeric(txtColYears) And (Val(txtColYears) >= 1 And Val(txtColYears) <= 10) Then
  855.         HsbColYears = txtColYears
  856.     End If
  857.     CheckEntries
  858.     NeedToSave = True
  859. End Sub
  860. Sub txtColYears_GotFocus ()
  861.     'Select whatever is already typed for editing
  862.     txtColYears.SelStart = 0
  863.     txtColYears.SelLength = Len(txtColYears.Text)
  864. End Sub
  865. Sub txtColYears_LostFocus ()
  866.    'Update horizontal scroll bar
  867.     If IsNumeric(txtColYears) And (Val(txtColYears) >= 1 And Val(txtColYears) <= 10) Then
  868.         txtColYears = CLng(txtColYears)
  869.         HsbColYears = txtColYears
  870.     ElseIf txtColYears = "" Then
  871.         txtColYears = 4
  872.     Else
  873.         MsgBox "This entry needs to be numeric and between 1-10!"
  874.         txtColYears.SetFocus
  875.     End If
  876. End Sub
  877.