home *** CD-ROM | disk | FTP | other *** search
/ Program Metropolis - Software Boutique 95 / SOFTWARECD.iso / camipro3 / macros2.cmz / QKTABLE.SMM < prev    next >
Encoding:
INI File  |  1994-08-14  |  28.0 KB  |  1,989 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     CHINESEBIG5 (Windows)
  9. [revisions]
  10.     0
  11. [prn]
  12.     QMS-PS 810
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     º╓│t½╪Ñ▀╢U┤┌└v┴┘¬φ
  19.     
  20.     
  21.     
  22.     
  23.     773106598
  24.     33
  25.     733534631
  26.     921
  27.     7
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     1
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [ParaNum]
  54.     1
  55. [tag]
  56.     Body Text
  57.     2
  58.     [fnt]
  59.         Times New Roman
  60.         200
  61.         0
  62.         49152
  63.     [algn]
  64.         1
  65.         1
  66.         0
  67.         0
  68.         0
  69.     [spc]
  70.         33
  71.         273
  72.         1
  73.         0
  74.         0
  75.         1
  76.         100
  77.     [brk]
  78.         4
  79.     [line]
  80.         8
  81.         0
  82.         1
  83.         0
  84.         1
  85.         1
  86.         1
  87.         10
  88.         10
  89.         1
  90.     [spec]
  91.         0
  92.         2
  93.         
  94.         0
  95.         1
  96.         1
  97.         0
  98.         0
  99.         0
  100.         0
  101.     [nfmt]
  102.         280
  103.         1
  104.         2
  105.         .
  106.         ,
  107.         $
  108.     Body Text
  109.     0
  110.     0
  111. [tag]
  112.     Body Single
  113.     3
  114.     [fnt]
  115.         Times New Roman
  116.         240
  117.         0
  118.         49152
  119.     [algn]
  120.         1
  121.         1
  122.         0
  123.         0
  124.         0
  125.     [spc]
  126.         33
  127.         273
  128.         1
  129.         0
  130.         0
  131.         1
  132.         100
  133.     [brk]
  134.         4
  135.     [line]
  136.         8
  137.         0
  138.         1
  139.         0
  140.         1
  141.         1
  142.         1
  143.         10
  144.         10
  145.         1
  146.     [spec]
  147.         0
  148.         0
  149.         
  150.         0
  151.         1
  152.         1
  153.         0
  154.         0
  155.         0
  156.         0
  157.     [nfmt]
  158.         280
  159.         1
  160.         2
  161.         .
  162.         ,
  163.         $
  164.     Body Single
  165.     0
  166.     0
  167. [tag]
  168.     Bullet
  169.     4
  170.     [fnt]
  171.         Times New Roman
  172.         240
  173.         0
  174.         49152
  175.     [algn]
  176.         1
  177.         1
  178.         0
  179.         288
  180.         288
  181.     [spc]
  182.         33
  183.         273
  184.         1
  185.         0
  186.         0
  187.         1
  188.         100
  189.     [brk]
  190.         4
  191.     [line]
  192.         8
  193.         0
  194.         1
  195.         0
  196.         1
  197.         1
  198.         1
  199.         10
  200.         10
  201.         1
  202.     [spec]
  203.         0
  204.         0
  205.         <*0>
  206.         360
  207.         1
  208.         1
  209.         0
  210.         0
  211.         0
  212.         0
  213.     [nfmt]
  214.         272
  215.         1
  216.         2
  217.         .
  218.         ,
  219.         $
  220.     Bullet
  221.     0
  222.     0
  223. [tag]
  224.     Bullet 1
  225.     5
  226.     [fnt]
  227.         Times New Roman
  228.         240
  229.         0
  230.         49152
  231.     [algn]
  232.         1
  233.         1
  234.         288
  235.         288
  236.         288
  237.     [spc]
  238.         33
  239.         273
  240.         1
  241.         0
  242.         0
  243.         1
  244.         100
  245.     [brk]
  246.         4
  247.     [line]
  248.         8
  249.         0
  250.         1
  251.         0
  252.         1
  253.         1
  254.         1
  255.         10
  256.         10
  257.         1
  258.     [spec]
  259.         0
  260.         0
  261.         <*5>
  262.         0
  263.         1
  264.         1
  265.         0
  266.         0
  267.         0
  268.         0
  269.     [nfmt]
  270.         280
  271.         1
  272.         2
  273.         .
  274.         ,
  275.         $
  276.     Bullet 1
  277.     0
  278.     0
  279. [tag]
  280.     Number List
  281.     6
  282.     [fnt]
  283.         Times New Roman
  284.         240
  285.         0
  286.         49152
  287.     [algn]
  288.         1
  289.         1
  290.         360
  291.         360
  292.         360
  293.     [spc]
  294.         33
  295.         273
  296.         1
  297.         0
  298.         0
  299.         1
  300.         100
  301.     [brk]
  302.         4
  303.     [line]
  304.         8
  305.         0
  306.         1
  307.         0
  308.         1
  309.         1
  310.         1
  311.         10
  312.         10
  313.         1
  314.     [spec]
  315.         0
  316.         0
  317.         <*:>.
  318.         360
  319.         1
  320.         1
  321.         0
  322.         16
  323.         0
  324.         0
  325.     [nfmt]
  326.         272
  327.         1
  328.         2
  329.         .
  330.         ,
  331.         $
  332.     Number List
  333.     0
  334.     0
  335. [tag]
  336.     Subhead
  337.     7
  338.     [fnt]
  339.         Times New Roman
  340.         240
  341.         0
  342.         49155
  343.     [algn]
  344.         1
  345.         1
  346.         0
  347.         0
  348.         0
  349.     [spc]
  350.         33
  351.         273
  352.         1
  353.         72
  354.         72
  355.         1
  356.         100
  357.     [brk]
  358.         68
  359.     [line]
  360.         8
  361.         0
  362.         1
  363.         0
  364.         1
  365.         1
  366.         1
  367.         10
  368.         10
  369.         1
  370.     [spec]
  371.         0
  372.         1
  373.         
  374.         0
  375.         1
  376.         1
  377.         0
  378.         0
  379.         0
  380.         0
  381.     [nfmt]
  382.         272
  383.         1
  384.         2
  385.         .
  386.         ,
  387.         $
  388.     Body Text
  389.     0
  390.     0
  391. [tag]
  392.     Title
  393.     8
  394.     [fnt]
  395.         Arial
  396.         360
  397.         0
  398.         16385
  399.     [algn]
  400.         4
  401.         1
  402.         0
  403.         0
  404.         0
  405.     [spc]
  406.         33
  407.         446
  408.         1
  409.         144
  410.         72
  411.         1
  412.         100
  413.     [brk]
  414.         16
  415.     [line]
  416.         8
  417.         0
  418.         1
  419.         0
  420.         1
  421.         1
  422.         1
  423.         10
  424.         10
  425.         1
  426.     [spec]
  427.         0
  428.         0
  429.         
  430.         0
  431.         1
  432.         1
  433.         0
  434.         0
  435.         0
  436.         0
  437.     [nfmt]
  438.         272
  439.         1
  440.         2
  441.         .
  442.         ,
  443.         $
  444.     Title
  445.     0
  446.     0
  447. [tag]
  448.     Header
  449.     9
  450.     [fnt]
  451.         Times New Roman
  452.         240
  453.         0
  454.         49152
  455.     [algn]
  456.         1
  457.         1
  458.         0
  459.         0
  460.         0
  461.     [spc]
  462.         33
  463.         273
  464.         1
  465.         0
  466.         0
  467.         1
  468.         100
  469.     [brk]
  470.         4
  471.     [line]
  472.         8
  473.         0
  474.         1
  475.         0
  476.         1
  477.         1
  478.         1
  479.         10
  480.         10
  481.         1
  482.     [spec]
  483.         0
  484.         0
  485.         
  486.         0
  487.         1
  488.         1
  489.         0
  490.         0
  491.         0
  492.         0
  493.     [nfmt]
  494.         280
  495.         1
  496.         2
  497.         .
  498.         ,
  499.         $
  500.     Header
  501.     0
  502.     0
  503. [tag]
  504.     Footer
  505.     11
  506.     [fnt]
  507.         Times New Roman
  508.         240
  509.         0
  510.         49152
  511.     [algn]
  512.         1
  513.         1
  514.         0
  515.         0
  516.         0
  517.     [spc]
  518.         33
  519.         273
  520.         1
  521.         0
  522.         0
  523.         1
  524.         100
  525.     [brk]
  526.         4
  527.     [line]
  528.         8
  529.         0
  530.         1
  531.         0
  532.         1
  533.         1
  534.         1
  535.         10
  536.         10
  537.         1
  538.     [spec]
  539.         0
  540.         0
  541.         
  542.         0
  543.         1
  544.         1
  545.         0
  546.         0
  547.         0
  548.         0
  549.     [nfmt]
  550.         280
  551.         1
  552.         2
  553.         .
  554.         ,
  555.         $
  556.     Footer
  557.     0
  558.     0
  559. [tag]
  560.     Table Text
  561.     12
  562.     [fnt]
  563.         Times New Roman
  564.         240
  565.         0
  566.         49152
  567.     [algn]
  568.         1
  569.         1
  570.         0
  571.         0
  572.         0
  573.     [spc]
  574.         33
  575.         273
  576.         1
  577.         0
  578.         0
  579.         1
  580.         100
  581.     [brk]
  582.         4
  583.     [line]
  584.         8
  585.         0
  586.         1
  587.         0
  588.         1
  589.         1
  590.         1
  591.         10
  592.         10
  593.         1
  594.     [spec]
  595.         0
  596.         0
  597.         
  598.         0
  599.         1
  600.         1
  601.         0
  602.         0
  603.         0
  604.         0
  605.     [nfmt]
  606.         280
  607.         1
  608.         2
  609.         .
  610.         ,
  611.         $
  612.     Table Text
  613.     0
  614.     0
  615. [lay]
  616.     Standard
  617.     513
  618.     [rght]
  619.         15840
  620.         12240
  621.         1
  622.         432
  623.         720
  624.         1
  625.         1080
  626.         432
  627.         0
  628.         1
  629.         0
  630.         1
  631.         0
  632.         2
  633.         1
  634.         432
  635.         11808
  636.         12
  637.         1
  638.         720
  639.         1
  640.         1440
  641.         1
  642.         2160
  643.         1
  644.         2880
  645.         1
  646.         3600
  647.         1
  648.         4320
  649.         1
  650.         5040
  651.         1
  652.         5760
  653.         1
  654.         6480
  655.         1
  656.         7200
  657.         1
  658.         7920
  659.         1
  660.         8640
  661.     [hrght]
  662.     [lyfrm]
  663.         1
  664.         11200
  665.         0
  666.         0
  667.         12240
  668.         1080
  669.         0
  670.         1
  671.         3
  672.         1 0 0 0 0 0 0
  673.         0
  674.         0
  675.         1
  676.     [frmlay]
  677.         1080
  678.         12240
  679.         1
  680.         1440
  681.         0
  682.         1
  683.         288
  684.         1440
  685.         0
  686.         1
  687.         0
  688.         1
  689.         1
  690.         0
  691.         1
  692.         1440
  693.         10800
  694.         2
  695.         2
  696.         4680
  697.         3
  698.         9360
  699.     [txt]
  700. Peyton McManus
  701.  
  702. Lotus WPD
  703.  
  704.  
  705. >
  706.     [frght]
  707.     [lyfrm]
  708.         1
  709.         13248
  710.         0
  711.         15120
  712.         12240
  713.         15840
  714.         0
  715.         1
  716.         3
  717.         1 0 0 0 0 0 0
  718.         0
  719.         0
  720.         2
  721.     [frmlay]
  722.         15840
  723.         12240
  724.         1
  725.         1440
  726.         648
  727.         1
  728.         15192
  729.         1440
  730.         0
  731.         1
  732.         0
  733.         1
  734.         1
  735.         0
  736.         1
  737.         1440
  738.         10800
  739.         2
  740.         2
  741.         4680
  742.         3
  743.         9360
  744.     [txt]
  745. >
  746. [elay]
  747. [l1]
  748.     0
  749. [pg]
  750.     7
  751.     56 0 9 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  752.     112 0 5 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  753.     168 0 22 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  754.     194 0 5 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  755.     250 0 0 0 3 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  756.     308 0 37 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  757.     354 0 10 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  758. [edoc]
  759. <:#240,11376>Declare        CellEngine(Action, Formula)
  760.  
  761. <:#240,11376>Declare        FontDlg(Action, Hdlg, id)
  762.  
  763. <:#240,11376>Declare        CreateMyStyles()
  764.  
  765. <:#240,11376>Declare DataCheck(MinYrs, MaxYrs, StepYrs, MinAmt, MaxAmt, StepAmt, IRate)
  766.  
  767. <:#240,11376>Declare MakeTable(MinYears, MaxYears, StepYears, MinAmount, MaxAmount, StepAmount, InterestRate)
  768.  
  769. <:s><:#240,11376>
  770.  
  771. <:#240,11376>Define    EnableWindow()    DllCall("User,EnableWindow,AHA",%1,%2)
  772.  
  773. <:s><:#240,11376>
  774.  
  775. <:s><:#240,11376>
  776.  
  777. <:#240,11376>Define    ErrorMessage    "The loan payment style sheet _LoanPay.sty was not opened."
  778.  
  779. <:#240,11376>Define    ErrorMessage2    "Some data necessary for the calculation was not provided."
  780.  
  781. <:s><:#240,11376>
  782.  
  783. <:#480,11376>Define    Desc    "This function builds a Loan Payment table so you can compare how different combinations of principal amounts and lengths of time affect your monthly and/or total payments.  "
  784.  
  785. <:#240,11376>Define    Desc2    "Fill out these questions, then click OK to build the loan table."
  786.  
  787. <:s><:#240,11376>
  788.  
  789. <:#240,11376>Define    QuestionText    "This will produce a table with over 50 rows.  Would you like to continue"
  790.  
  791. <:s><:#240,11376>
  792.  
  793. <:s><:#240,11376>
  794.  
  795. <:#240,11376>Define    cAmount    "What is the maximum and minimum amount of the loan you are considering?"
  796.  
  797. <:#240,11376>Define    cLoanStep    "What  increments for the loan do you want to evaluate?"
  798.  
  799. <:#240,11376>Define    cRate    "What is the annual interest rate for this loan?"
  800.  
  801. <:#240,11376>Define    cTime    "What is the maximum and minimum amount of time you are considering for the loan? (in years)"
  802.  
  803. <:#240,11376>Define    cIncrement    "Over what increments of time do you want to evaluate this loan? (in years, so .5 = 1/2 year)"
  804.  
  805. <:s><:#240,11376>
  806.  
  807. <:#240,11376>Define    AppName    "Loan Calculator"
  808.  
  809. <:#240,11376>
  810.  
  811. <:#240,11376>Define    CreateShade()    TableLines(64 63 0 8910 15724527  )
  812.  
  813. <:#240,11376>
  814.  
  815. <:#240,11376>
  816.  
  817. @Subhead@<:#284,11376>Function Main()
  818.  
  819. <:#240,11376>DefStr MaxAmt, MinAmt, StepAmt, Irate, MaxYrs, MinYrs, StepYrs;
  820.  
  821. <:#240,11376>CellEngine(1,0)    ' Start engine
  822.  
  823. <:#240,11376>FontDlg(1,0,0)    ' Create a small font for some of the controls in the dialog box
  824.  
  825. <:#240,11376>
  826.  
  827. <:#240,11376>Mac = GetRunningMacroFile$()
  828.  
  829. <:#240,11376>Descript = Strcat$(Desc, Desc2)
  830.  
  831. <:#240,11376>Again:
  832.  
  833. <:#240,11376>FillEdit( 1010, Descript)
  834.  
  835. <:#240,11376>FillEdit(1000, cAmount)
  836.  
  837. <:#240,11376>FillEdit(1008, cLoanStep)
  838.  
  839. <:#240,11376>FillEdit(1009, cRate)
  840.  
  841. <:#240,11376>FillEdit(1003, cTime)
  842.  
  843. <:#240,11376>FillEdit(1011, cIncrement)
  844.  
  845. <:#240,11376>FillEdit(8000, MaxAmt)
  846.  
  847. <:#240,11376>FillEdit(8001, MinAmt)
  848.  
  849. <:#240,11376>FillEdit(8002, StepAmt)
  850.  
  851. <:#240,11376>FillEdit(8003, Irate)
  852.  
  853. <:#240,11376>FillEdit(8004, MaxYrs)
  854.  
  855. <:#240,11376>FillEdit(8005, MinYrs)
  856.  
  857. <:#240,11376>FillEdit(8006, StepYrs)
  858.  
  859. <:#240,11376>SetDlgCallBack(0,"{Mac}!InitDlg")
  860.  
  861. @Outline3@<:#240,11376>
  862.  
  863. @Outline3@<:#240,11376>DlgKeyInterrupt(112, "{mac}!DisplayHelp")
  864.  
  865. @Outline3@<:#240,11376>
  866.  
  867. <:#240,11376>Box = DialogBox(".","Table")
  868.  
  869. <:#240,11376>If Box =1
  870.  
  871. <:#240,11376>    MaxAmt = GetDialogField$(8000) *1
  872.  
  873. <:#240,11376>    MinAmt = GetDialogField$(8001) * 1
  874.  
  875. <:#240,11376>    StepAmt = GetDialogField$(8002) * 1
  876.  
  877. <:#240,11376>    IRate = GetDialogField$(8003) * 1
  878.  
  879. <:#240,11376>    MaxYrs = GetDialogField$(8004) * 1
  880.  
  881. <:#240,11376>    MinYrs = GetDialogField$(8005) * 1
  882.  
  883. <:#240,11376>    StepYrs = GetDialogField$(8006) * 1
  884.  
  885. <:#236,11376>    If 0 = DataCheck(MinYrs, MaxYrs, StepYrs, MinAmt, MaxAmt, StepAmt, IRate)
  886.  
  887. <:#240,11376>        ' Data is ok
  888.  
  889. <:#236,11376>        MakeTable(MinYrs, MaxYrs, StepYrs, MinAmt, MaxAmt, StepAmt, IRate)
  890.  
  891. <:#240,11376>    Else
  892.  
  893. <:#240,11376>        Message(ErrorMessage2,AppName)
  894.  
  895. <:#240,11376>        Goto Again
  896.  
  897. <:#240,11376>    Endif
  898.  
  899. <:#240,11376>Endif
  900.  
  901. <:#240,11376>CellEngine(0,0)    ' shut down the dll and free global var
  902.  
  903. <:#240,11376>FontDlg(4,0,0)    ' Destroy the small font and free the global var
  904.  
  905. <:#240,11376>End Function
  906.  
  907. <:#240,11376>
  908.  
  909. <:#240,11376>
  910.  
  911. @Subhead@<:#279,11376>Function DataCheck(MinYrs, MaxYrs, StepYrs, MinAmt, MaxAmt, StepAmt, IRate)
  912.  
  913. <:#236,11376>If (MaxYrs << 1) or (MinYrs << 0)
  914.  
  915. <:#236,11376>    Return -1
  916.  
  917. <:#236,11376>Endif
  918.  
  919. <:#236,11376>
  920.  
  921. <:#236,11376>If (MaxAmt << 1) or (MinAmt << 0)
  922.  
  923. <:#236,11376>    Return -1
  924.  
  925. <:#236,11376>Endif
  926.  
  927. <:#236,11376>
  928.  
  929. <:#236,11376>IF (StepYrs <<= 0) or (StepAmt <<=0)
  930.  
  931. <:#236,11376>    Return -1
  932.  
  933. <:#236,11376>Endif
  934.  
  935. <:#236,11376>
  936.  
  937. <:#236,11376>If MinYrs <;> MaxYrs;
  938.  
  939. <:#236,11376>    Return -1
  940.  
  941. <:#236,11376>Endif
  942.  
  943. <:#236,11376>
  944.  
  945. <:#236,11376>If MaxAmt << MinAmt;
  946.  
  947. <:#236,11376>    Return -1
  948.  
  949. <:#236,11376>Endif
  950.  
  951. <:#236,11376>End Function
  952.  
  953. @Subhead@<:#279,11376>
  954.  
  955. <:#236,11376>
  956.  
  957. <:#236,11376>
  958.  
  959. <:#236,11376>
  960.  
  961. @Subhead@<:#284,11376>Function MakeTable(MinYrs, MaxYrs, StepYrs, MinAmt, MaxAmt, StepAmt, IRate)
  962.  
  963. <:#240,11376>
  964.  
  965. <:#240,11376>NumberCols = CellEngine(3,"@Int(({MaxYrs}-{MinYrs})/{StepYrs})+2")
  966.  
  967. <:#240,11376>If NumberCols <;> 50
  968.  
  969. <:#240,11376>    If Not Decide(QuestionText,"Ami Pro")
  970.  
  971. <:#240,11376>        Return -1
  972.  
  973. <:#240,11376>    Endif
  974.  
  975. <:#240,11376>Endif
  976.  
  977. <:#240,11376>If NumberCols <<1
  978.  
  979. <:#240,11376>    NumberCols =2
  980.  
  981. <:#240,11376>Endif
  982.  
  983. <:#240,11376>NumberRows = 3
  984.  
  985. <:#240,11376>If New("_LoanPay.sty"  1 0  )
  986.  
  987. <:#240,11376>Else
  988.  
  989. <:#240,11376>    Message(ErrorMessage)
  990.  
  991. <:#240,11376>    Return -1
  992.  
  993. <:#240,11376>Endif
  994.  
  995. <:#240,11376>
  996.  
  997. <:#240,11376>MarkBookMark("IRate",FindBookMark)
  998.  
  999. <:#240,11376>    Type("{Irate}%")
  1000.  
  1001. <:#240,11376> MarkbookMark("MaxAmt",FindBookMark)
  1002.  
  1003. <:#240,11376>    Type("{MaxAmt}")
  1004.  
  1005. <:#240,11376>MarkBookMark("MinAmt",FindBookMark)
  1006.  
  1007. <:#240,11376>    Type("{MinAmt}")
  1008.  
  1009. <:#240,11376>MarkBookMark("MaxYrs",FindBookMark)
  1010.  
  1011. <:#240,11376>    Type("{MaxYrs} years")
  1012.  
  1013. <:#240,11376>MarkBookMark("MinYrs",FindBookMark)
  1014.  
  1015. <:#240,11376>    Type("{MinYrs} years")
  1016.  
  1017. <:#240,11376>MarkBookMark("Start",FindBookMark)
  1018.  
  1019. <:#240,11376>Tables(1 1 NumberCols, NumberRows )
  1020.  
  1021. <:#240,11376>Irate = Irate / 100
  1022.  
  1023. <:#240,11376>Type("<[>Tab]")
  1024.  
  1025. <:#240,11376>Answer = 1
  1026.  
  1027. <:#240,11376>For Term = MinYrs to MaxYrs Step StepYrs
  1028.  
  1029. <:#240,11376>    Type("{Term}<[>Tab]")
  1030.  
  1031. <:#240,11376>Next
  1032.  
  1033. <:#240,11376>For Amount = MinAmt to MaxAmt Step StepAmt
  1034.  
  1035. <:#240,11376>    Createshade()
  1036.  
  1037. <:#240,11376>    Type ("{Amount}<[>Tab]")
  1038.  
  1039. <:#240,11376>    For Term = MinYrs to MaxYrs Step StepYrs
  1040.  
  1041. <:#240,11376>        Answer = CellEngine(3,"@Pmt({Amount},{IRate}/12,{Term}*12)")
  1042.  
  1043. <:#240,11376>        CreateShade()
  1044.  
  1045. <:#240,11376>        Type("{Answer}<[>Tab]")
  1046.  
  1047. <:#240,11376>    Next
  1048.  
  1049. <:#240,11376>    Type ("<[>Tab]")
  1050.  
  1051. <:#240,11376>    InsertColumnRow(1 0 0  )
  1052.  
  1053. <:#240,11376>
  1054.  
  1055. <:#240,11376>    For Term = MinYrs to MaxYrs Step StepYrs
  1056.  
  1057. <:#240,11376>        Answer = CellEngine(3,"@Pmt({Amount},{IRate}/12,{Term}*12)")
  1058.  
  1059. <:#240,11376>            Total = Answer *(Term * 12)
  1060.  
  1061. <:#240,11376>        Type("{Total}<[>Tab]")
  1062.  
  1063. <:#240,11376>    Next
  1064.  
  1065. <:#240,11376>    InsertColumnRow(1 0 0  )
  1066.  
  1067. <:#240,11376>Next
  1068.  
  1069. <:#240,11376>Type("<[>CtrlHome]")
  1070.  
  1071. <:#240,11376>End Function
  1072.  
  1073. @Subhead@<:#284,11376>
  1074.  
  1075. <:#240,11376>
  1076.  
  1077. <:#240,11376>
  1078.  
  1079. @Subhead@<:#284,11376>Function InitDlg(hDlg, id, Value)
  1080.  
  1081. <:#240,11376>IgnoreKeyBoard(2)
  1082.  
  1083. <:#240,11376>HourGlass(on)
  1084.  
  1085. <:#240,11376>For id = 1000 to 1012
  1086.  
  1087. <:#240,11376>    FontDlg(3, Hdlg, id)
  1088.  
  1089. <:#240,11376>    FontDlg(3, Hdlg, 7000 + id)
  1090.  
  1091. <:#240,11376>Next
  1092.  
  1093. <:#240,11376>FontDlg(3, Hdlg, 1018)
  1094.  
  1095. <:#240,11376>HourGlass(off)
  1096.  
  1097. <:#240,11376>End Function
  1098.  
  1099. <:#240,11376>
  1100.  
  1101. <:#240,11376>
  1102.  
  1103. @Subhead@<:#284,11376>Function CreateMyStyles()
  1104.  
  1105. <:#240,11376>ModifySelect("Table Text"   )
  1106.  
  1107. <:#240,11376>ModifyFont("Arial"  200 0 1  )
  1108.  
  1109. <:#240,11376>ModifyReflow( )
  1110.  
  1111. <:#240,11376>End Function
  1112.  
  1113. <:#240,11376>
  1114.  
  1115. <:#240,11376>
  1116.  
  1117. @Subhead@<:#284,11376>function DisplayHelp()
  1118.  
  1119. @Outline2@<:#240,11376>' two defines needed for help.  The help name and panel number are defined above
  1120.  
  1121. @Outline2@<:#240,11376>define FindWindowa() DllCall("user,FindWindow,HCC", %1, %2)
  1122.  
  1123. @Outline2@<:#240,11376>define WinHelpa(hWnd, file, cmd, ptr)    DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4)
  1124.  
  1125. @Outline2@<:#240,11376>prohWnd = FindWindowa("AmiProWndA", 0)
  1126.  
  1127. @Outline2@<:#240,11376>helpfile = strcat$(GetAmiDirectory$(), "HelpPack.hlp")
  1128.  
  1129. @Outline2@<:#240,11376>PanelNum= 45 
  1130.  
  1131. @Outline2@<:#240,11376>WinHelpa(prohWnd, helpfile, 0x0001, Panelnum)
  1132.  
  1133. @Outline2@<:#240,11376>end function
  1134.  
  1135. @Subhead@<:#284,11376>
  1136.  
  1137. <:#240,11376>
  1138.  
  1139. <:#240,11376>
  1140.  
  1141. <:#240,11376>
  1142.  
  1143. <:#240,11376>
  1144.  
  1145. <:p<* >>
  1146.  
  1147. @Subhead@<:#284,11376>Function FontDlg(Action, Hdlg, id)
  1148.  
  1149. <:#240,11376>' 1    Create a font and allocvar
  1150.  
  1151. <:#240,11376>' 2    Return the handle of the create font 
  1152.  
  1153. <:#240,11376>' 3    Set the id specified to the font
  1154.  
  1155. <:#240,11376>' 4    Freeglobalvar and delete created object
  1156.  
  1157. <:#240,11376>
  1158.  
  1159. <:#480,11376>define    CreateFontDLG()        DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
  1160.  
  1161. <:#240,11376>define    DeleteObjectDLG(handle)    DllCall("gdi,DeleteObject,HH", %1)
  1162.  
  1163. <:#240,11376>define    SendMessageDLG(hwnd, msg, wpara, lparm)    DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4)
  1164.  
  1165. <:#240,11376>
  1166.  
  1167. <:#240,11376>Switch Action
  1168.  
  1169. <:#240,11376>    Case 1    ' Create the font and store it
  1170.  
  1171. <:#240,11376>        Font = CreateFontDLG(13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 32, "Helv")
  1172.  
  1173. <:#240,11376>        AllocGlobalVar("FontHandle",1)
  1174.  
  1175. <:#240,11376>        If Font
  1176.  
  1177. <:#240,11376>            SetGlobalVar("FontHandle",Font)
  1178.  
  1179. <:#240,11376>            Return Font
  1180.  
  1181. <:#240,11376>        Else
  1182.  
  1183. <:#240,11376>            Return 0;    ' no font
  1184.  
  1185. <:#240,11376>        Endif
  1186.  
  1187. <:#240,11376>        Break;
  1188.  
  1189. <:#240,11376>    Case 2    ' Return the handle to the font
  1190.  
  1191. <:#240,11376>        Handle = GetGlobalVar$("FontHandle")
  1192.  
  1193. <:#240,11376>        If Handle 
  1194.  
  1195. <:#240,11376>            Return Handle
  1196.  
  1197. <:#240,11376>        Else
  1198.  
  1199. <:#240,11376>            Return 0
  1200.  
  1201. <:#240,11376>        Endif
  1202.  
  1203. <:#240,11376>
  1204.  
  1205. <:#240,11376>    Case 3    ' Set the id to the font
  1206.  
  1207. <:#240,11376>        Handle = GetGlobalVar$("FontHandle")
  1208.  
  1209. <:#240,11376>        If Handle 
  1210.  
  1211. <:#240,11376>            IdControl = GetDlgITem(Hdlg, id)
  1212.  
  1213. <:#240,11376>            SendMessageDlg(idControl, 0x30, Handle, 0)
  1214.  
  1215. <:#240,11376>            Return 1
  1216.  
  1217. <:#240,11376>        Else
  1218.  
  1219. <:#240,11376>            Return 0
  1220.  
  1221. <:#240,11376>        Endif
  1222.  
  1223. <:#240,11376>        Break;        
  1224.  
  1225. <:#240,11376>        
  1226.  
  1227. <:#240,11376>    Case 4    ' Delete the font and clear the var
  1228.  
  1229. <:#240,11376>        Handle = GetGlobalVar$("FontHandle")
  1230.  
  1231. <:#240,11376>        If Handle
  1232.  
  1233. <:#240,11376>            DeleteObjectDLG(Handle)
  1234.  
  1235. <:#240,11376>            Stat = 1    
  1236.  
  1237. <:#240,11376>        Else
  1238.  
  1239. <:#240,11376>            Stat = 0
  1240.  
  1241. <:#240,11376>        Endif
  1242.  
  1243. <:#240,11376>        FreeGlobalVar("FontHandle")
  1244.  
  1245. <:#240,11376>        Return Stat        
  1246.  
  1247. <:#240,11376>    Default
  1248.  
  1249. <:#240,11376>        Message("Fontdlg received an invalid parameter {Action}")
  1250.  
  1251. <:#240,11376>EndSwitch    
  1252.  
  1253. <:#240,11376>
  1254.  
  1255. <:#240,11376>End Function
  1256.  
  1257. @Subhead@<:#284,11376>
  1258.  
  1259. @Subhead@<:#284,11376>Function CellEngine(Action, Formula)
  1260.  
  1261. <:#240,11376>'Available Actions
  1262.  
  1263. <:#240,11376>'    1         Start the engine and allocate globalvar
  1264.  
  1265. <:#240,11376>'    2        Return the handle to the instance of the sheet
  1266.  
  1267. <:#240,11376>'    3        Pass the formula as the second param
  1268.  
  1269. <:#240,11376>'    0        Shut everything down
  1270.  
  1271. <:#240,11376>'    Default    Expect a formula and return an answer
  1272.  
  1273. <:#240,11376>
  1274.  
  1275. <:#240,11376>' these defines may be useful at the beginning of your macro
  1276.  
  1277. <:#240,11376>Define StartEngine    1
  1278.  
  1279. <:#240,11376>Define GetInstance    2
  1280.  
  1281. <:#240,11376>Define CloseEngine    0
  1282.  
  1283. <:#240,11376>
  1284.  
  1285. <:#240,11376>Define    CECREATEINSTANCE(LPHANDLE)    DllCall("LTSCE01.DLL,CECREATEINSTANCE,HO",%1)
  1286.  
  1287. <:#240,11376>Define    CEDESTROYINSTANCE(HANDLE)    DllCall("LTSCE01.DLL,CEDESTROYINSTANCE,HH",%1)
  1288.  
  1289. <:#240,11376>Define    CECALCNOW(HINSTANCE, lpFormula, lpOutPut)    DllCall("LTSCE01.DLL,CECALCNOW,HHCC",%1,%2,%3)
  1290.  
  1291. <:#240,11376>
  1292.  
  1293. <:#240,11376>DefStr hInstance, Answer, Var;
  1294.  
  1295. <:#240,11376>Mac = GetRunningMacroFile$()
  1296.  
  1297. <:#240,11376>GlobalInstance = StrCat$(Mac,"hIstance")
  1298.  
  1299. <:#240,11376>
  1300.  
  1301. <:#240,11376>Switch Action
  1302.  
  1303. <:#240,11376>    Case 1
  1304.  
  1305. <:#240,11376>        ' start the engine
  1306.  
  1307. <:#240,11376>        LibId = DLLLoadLib("LTSCE01.DLL","CECreateInstance","HO")
  1308.  
  1309. <:#240,11376>        If LibId = 0
  1310.  
  1311. <:#240,11376>            Message("LTSCE01.DLL not found.  Copy the dll to your windows directory")    
  1312.  
  1313. <:#240,11376>            Return -1;
  1314.  
  1315. <:#240,11376>        Endif
  1316.  
  1317. <:#240,11376>        RetVal = CECREATEINSTANCE(&hInstance)
  1318.  
  1319. <:#240,11376>        AllocGlobalVar("{GlobalInstance}",1)
  1320.  
  1321. <:#240,11376>        AllocGlobalVar("{Mac}LibId",1)
  1322.  
  1323. <:#240,11376>        SetGlobalVar("{Mac}Libid",LibId)
  1324.  
  1325. <:#240,11376>        SetGlobalVar("{GlobalInstance}",hInstance)
  1326.  
  1327. <:#240,11376>        Return hInstance;
  1328.  
  1329. <:#240,11376>        Break;
  1330.  
  1331. <:#240,11376>
  1332.  
  1333. <:#240,11376>    Case 2
  1334.  
  1335. <:#240,11376>        ' return the handle to the instance of the sheet
  1336.  
  1337. <:#240,11376>        AllocGlobalVar("{GlobalInstance}",1)
  1338.  
  1339. <:#240,11376>        hInstance = GetGlobalVar$("{GlobalInstance}")
  1340.  
  1341. <:#240,11376>        Return hInstance;
  1342.  
  1343. <:#240,11376>        Break;
  1344.  
  1345. <:#240,11376>
  1346.  
  1347. <:#240,11376>    Case 3
  1348.  
  1349. <:#240,11376>        ' Calculate the formula and return the answer
  1350.  
  1351. <:#240,11376>            AllocGlobalVar("{GlobalInstance}",1)
  1352.  
  1353. <:#240,11376>            hInstance = GetGlobalVar$("{GlobalInstance}")
  1354.  
  1355. <:#240,11376>            CECalcNow(hInstance,"{Formula}",&Answer)
  1356.  
  1357. <:#240,11376>            Return Answer;
  1358.  
  1359. <:#240,11376>        Break;
  1360.  
  1361. <:#240,11376>
  1362.  
  1363. <:#240,11376>    Case 0
  1364.  
  1365. <:#240,11376>        ' destroy the instance of the sheet and free the global var and libid
  1366.  
  1367. <:#240,11376>        AllocGlobalVar("{GlobalInstance}",1)
  1368.  
  1369. <:#240,11376>        AllocGlobalVar("{Mac}LibId",1)
  1370.  
  1371. <:#240,11376>        hInstance = GetGlobalVar$("{GlobalInstance}")
  1372.  
  1373. <:#240,11376>        LibId = GetGlobalVar$("{Mac}LibId")
  1374.  
  1375. <:#240,11376>        If hInstance
  1376.  
  1377. <:#240,11376>            CEDestroyInstance(hInstance)
  1378.  
  1379. <:#240,11376>            DllFreeLib(Libid)
  1380.  
  1381. <:#240,11376>        Endif
  1382.  
  1383. <:#240,11376>        FreeGlobalVar("{GlobalInstance}")
  1384.  
  1385. <:#240,11376>        FreeGlobalVar("{Mac}LibId")
  1386.  
  1387. <:#240,11376>        Break;
  1388.  
  1389. <:#240,11376>    Default
  1390.  
  1391. <:#240,11376>EndSwitch
  1392.  
  1393. <:#240,11376>End Function
  1394.  
  1395. <:#240,11376>
  1396.  
  1397. <:#240,11376>
  1398.  
  1399. <:#240,11376>
  1400.  
  1401. <:#240,11376>
  1402.  
  1403. <:#240,11376>DIALOG    Table
  1404.  
  1405. <:#240,11376>-2134376448    28    25    33    269    138    ""    "AmiDialog"    "Calculate Loan Payment Table"
  1406.  
  1407. <:#240,11376>FONT    8    "Helv"
  1408.  
  1409. <:#240,11376>68    49    32    12    8000    1350631424    "edit"    ""    0 
  1410.  
  1411. <:#240,11376>68    63    32    12    8001    1350631424    "edit"    ""    0 
  1412.  
  1413. <:#240,11376>68    96    32    12    8002    1350631424    "edit"    ""    0 
  1414.  
  1415. <:#240,11376>68    121    25    12    8003    1350631424    "edit"    ""    0 
  1416.  
  1417. <:#240,11376>195    66    32    12    8004    1350631424    "edit"    ""    0 
  1418.  
  1419. <:#240,11376>195    80    32    12    8005    1350631424    "edit"    ""    0 
  1420.  
  1421. <:#240,11376>195    115    32    12    8006    1350631424    "edit"    ""    0 
  1422.  
  1423. <:#240,11376>224    2    40    14    1    1342373889    "button"    "OK"    0 
  1424.  
  1425. <:#240,11376>224    18    40    14    2    1342373888    "button"    "Cancel"    0 
  1426.  
  1427. <:#240,11376>11    30    116    17    1000    1342177280    "static"    "Fillededit max and min"    0 
  1428.  
  1429. <:#240,11376>153    83    36    10    1001    1342177280    "static"    "Minimum:"    0 
  1430.  
  1431. <:#240,11376>25    52    34    10    1002    1342177280    "static"    "Maximum:"    0 
  1432.  
  1433. <:#240,11376>137    48    126    17    1003    1342177280    "static"    "Filledit max min amt"    0 
  1434.  
  1435. <:#240,11376>25    66    32    10    1004    1342177280    "static"    "Minimum:"    0 
  1436.  
  1437. <:#240,11376>153    69    37    10    1005    1342177280    "static"    "Maximum:"    0 
  1438.  
  1439. <:#240,11376>12    124    55    8    1006    1342177280    "static"    "Annual interest rate:"    0 
  1440.  
  1441. <:#240,11376>25    99    40    10    1007    1342177280    "static"    "Step value:"    0 
  1442.  
  1443. <:#240,11376>11    78    107    16    1008    1342177280    "static"    "Filledit dollar increments"    0 
  1444.  
  1445. <:#240,11376>11    110    127    10    1009    1342177280    "static"    "FillEdit annual interest"    0 
  1446.  
  1447. <:#240,11376>3    3    217    26    1010    1342177280    "static"    "Filledit lot of text"    0 
  1448.  
  1449. <:#240,11376>137    97    130    16    1011    1342177280    "static"    "Filledit increments year"    0 
  1450.  
  1451. <:#240,11376>153    118    36    10    1012    1342177280    "static"    "Step value:"    0 
  1452.  
  1453. <:#240,11376>2    30    8    9    1013    1342177280    "static"    "1."    0 
  1454.  
  1455. <:#240,11376>2    78    8    9    1014    1342177280    "static"    "2."    0 
  1456.  
  1457. <:#240,11376>2    110    8    9    1015    1342177280    "static"    "3."    0 
  1458.  
  1459. <:#240,11376>129    48    8    9    1016    1342177280    "static"    "4."    0 
  1460.  
  1461. <:#240,11376>129    97    8    9    1017    1342177280    "static"    "5."    0 
  1462.  
  1463. <:#240,11376>95    124    8    9    1018    1342177280    "static"    "%"    0 
  1464.  
  1465. <:#240,11376>END DIALOG
  1466.  
  1467. >
  1468.  
  1469. [Embedded]
  1470. 00021356
  1471. >
  1472. [macsum] 9
  1473. Main 0 0 11 29
  1474. DataCheck 1497 7 1 76
  1475. MakeTable 1796 7 7 101
  1476. InitDlg 3215 3 1 160
  1477. CreateMyStyles 3462 0 1 172
  1478. DisplayHelp 3549 0 4 179
  1479. FontDlg 3734 3 5 194
  1480. CellEngine 4580 2 8 250
  1481. Table 5527 0 -1 322
  1482. [macse]
  1483. 14 Main
  1484. 16 CellEngine 1 0
  1485. 16 FontDlg 1 0 0
  1486. 0 802
  1487. 13
  1488. 8 8
  1489. 0 16 "This function builds a Loan Payment table so you can compare how different combinations of principal amounts and lengths of time affect your monthly and/or total payments.  " "Fill out these questions, then click OK to build the loan table."
  1490. 13
  1491. 8 9
  1492. 0 31 1010 "{9}"
  1493. 0 31 1000 "What is the maximum and minimum amount of the loan you are considering?"
  1494. 0 31 1008 "What  increments for the loan do you want to evaluate?"
  1495. 0 31 1009 "What is the annual interest rate for this loan?"
  1496. 0 31 1003 "What is the maximum and minimum amount of time you are considering for the loan? (in years)"
  1497. 0 31 1011 "Over what increments of time do you want to evaluate this loan? (in years, so .5 = 1/2 year)"
  1498. 0 31 8000 "{1}"
  1499. 0 31 8001 "{2}"
  1500. 0 31 8002 "{3}"
  1501. 0 31 8003 "{4}"
  1502. 0 31 8004 "{5}"
  1503. 0 31 8005 "{6}"
  1504. 0 31 8006 "{7}"
  1505. 0 41 0 "{8}!InitDlg"
  1506. 0 47 112 "{8}!DisplayHelp"
  1507. 0 26 "." "Table"
  1508. 13
  1509. 8 10
  1510. 6 10
  1511. 5 1
  1512. 18 0
  1513. 11 00001448
  1514. 0 27 8000
  1515. 13
  1516. 5 1
  1517. 4 0
  1518. 8 1
  1519. 0 27 8001
  1520. 13
  1521. 5 1
  1522. 4 0
  1523. 8 2
  1524. 0 27 8002
  1525. 13
  1526. 5 1
  1527. 4 0
  1528. 8 3
  1529. 0 27 8003
  1530. 13
  1531. 5 1
  1532. 4 0
  1533. 8 4
  1534. 0 27 8004
  1535. 13
  1536. 5 1
  1537. 4 0
  1538. 8 5
  1539. 0 27 8005
  1540. 13
  1541. 5 1
  1542. 4 0
  1543. 8 6
  1544. 0 27 8006
  1545. 13
  1546. 5 1
  1547. 4 0
  1548. 8 7
  1549. 5 0
  1550. 16 DataCheck "{6}" "{5}" "{7}" "{2}" "{1}" "{3}" "{4}"
  1551. 13
  1552. 18 0
  1553. 11 00001352
  1554. 16 MakeTable "{6}" "{5}" "{7}" "{2}" "{1}" "{3}" "{4}"
  1555. 10 00001448
  1556. 0 3 "Some data necessary for the calculation was not provided." "Loan Calculator"
  1557. 10 00000320
  1558. 16 CellEngine 0 0
  1559. 16 FontDlg 4 0 0
  1560. 6 0
  1561. 15
  1562. 9
  1563. 14 DataCheck
  1564. 6 1
  1565. 5 1
  1566. 18 5
  1567. 6 0
  1568. 5 0
  1569. 18 5
  1570. 1 2
  1571. 11 00000077
  1572. 5 -1
  1573. 15
  1574. 9
  1575. 6 4
  1576. 5 1
  1577. 18 5
  1578. 6 3
  1579. 5 0
  1580. 18 5
  1581. 1 2
  1582. 11 00000140
  1583. 5 -1
  1584. 15
  1585. 9
  1586. 6 2
  1587. 5 0
  1588. 18 4
  1589. 6 5
  1590. 5 0
  1591. 18 4
  1592. 1 2
  1593. 11 00000203
  1594. 5 -1
  1595. 15
  1596. 9
  1597. 6 0
  1598. 6 1
  1599. 18 3
  1600. 11 00000245
  1601. 5 -1
  1602. 15
  1603. 9
  1604. 6 4
  1605. 6 3
  1606. 18 5
  1607. 11 00000287
  1608. 5 -1
  1609. 15
  1610. 9
  1611. 6 7
  1612. 15
  1613. 9
  1614. 14 MakeTable
  1615. 16 CellEngine 3 "@Int(({1}-{0})/{2})+2"
  1616. 13
  1617. 8 8
  1618. 6 8
  1619. 5 50
  1620. 18 3
  1621. 11 00000219
  1622. 0 2 "This will produce a table with over 50 rows.  Would you like to continue" "Ami Pro"
  1623. 13
  1624. 1 3
  1625. 11 00000219
  1626. 5 -1
  1627. 15
  1628. 9
  1629. 6 8
  1630. 5 1
  1631. 18 5
  1632. 11 00000258
  1633. 5 2
  1634. 8 8
  1635. 5 3
  1636. 8 9
  1637. 2 101 1 "_LoanPay.sty" 1 0
  1638. 13
  1639. 11 00000326
  1640. 10 00000404
  1641. 0 3 "The loan payment style sheet _LoanPay.sty was not opened."
  1642. 5 -1
  1643. 15
  1644. 9
  1645. 2 466 1 "IRate" 4002
  1646. 0 6 "{6}%"
  1647. 2 466 1 "MaxAmt" 4002
  1648. 0 6 "{4}"
  1649. 2 466 1 "MinAmt" 4002
  1650. 0 6 "{3}"
  1651. 2 466 1 "MaxYrs" 4002
  1652. 0 6 "{1} years"
  1653. 2 466 1 "MinYrs" 4002
  1654. 0 6 "{0} years"
  1655. 2 466 1 "Start" 4002
  1656. 2 457 1 1 1 "{8}" "{9}"
  1657. 6 6
  1658. 5 100
  1659. 4 1
  1660. 8 6
  1661. 0 6 "[9]"
  1662. 5 1
  1663. 8 10
  1664. 6 0
  1665. 8 11
  1666. 6 1
  1667. 6 11
  1668. 18 2
  1669. 12 00000766
  1670. 10 00000794
  1671. 6 2
  1672. 6 11
  1673. 3 0
  1674. 8 11
  1675. 10 00000688
  1676. 0 6 "{11}[9]"
  1677. 10 00000731
  1678. 6 3
  1679. 8 12
  1680. 6 4
  1681. 6 12
  1682. 18 2
  1683. 12 00000883
  1684. 10 00001392
  1685. 6 5
  1686. 6 12
  1687. 3 0
  1688. 8 12
  1689. 10 00000805
  1690. 2 632 1 64 63 0 8910 15724527
  1691. 0 6 "{12}[9]"
  1692. 6 0
  1693. 8 11
  1694. 6 1
  1695. 6 11
  1696. 18 2
  1697. 12 00001018
  1698. 10 00001132
  1699. 6 2
  1700. 6 11
  1701. 3 0
  1702. 8 11
  1703. 10 00000940
  1704. 16 CellEngine 3 "@Pmt({12},{6}/12,{11}*12)"
  1705. 13
  1706. 8 10
  1707. 2 632 1 64 63 0 8910 15724527
  1708. 0 6 "{10}[9]"
  1709. 10 00000983
  1710. 0 6 "[9]"
  1711. 2 627 1 1 0 0
  1712. 6 0
  1713. 8 11
  1714. 6 1
  1715. 6 11
  1716. 18 2
  1717. 12 00001247
  1718. 10 00001364
  1719. 6 2
  1720. 6 11
  1721. 3 0
  1722. 8 11
  1723. 10 00001169
  1724. 16 CellEngine 3 "@Pmt({12},{6}/12,{11}*12)"
  1725. 13
  1726. 8 10
  1727. 6 10
  1728. 6 11
  1729. 5 12
  1730. 4 0
  1731. 4 0
  1732. 8 13
  1733. 0 6 "{13}[9]"
  1734. 10 00001212
  1735. 2 627 1 1 0 0
  1736. 10 00000848
  1737. 0 6 "[16420]"
  1738. 6 7
  1739. 15
  1740. 9
  1741. 14 InitDlg
  1742. 0 32 2
  1743. 0 296 1
  1744. 5 1000
  1745. 8 1
  1746. 5 1012
  1747. 6 1
  1748. 18 2
  1749. 12 00000120
  1750. 10 00000201
  1751. 5 1
  1752. 6 1
  1753. 3 0
  1754. 8 1
  1755. 10 00000042
  1756. 16 FontDlg 3 "{0}" "{1}"
  1757. 5 7000
  1758. 6 1
  1759. 3 0
  1760. 16 FontDlg 3 "{0}" [X]
  1761. 10 00000087
  1762. 16 FontDlg 3 "{0}" 1018
  1763. 0 296 0
  1764. 6 3
  1765. 15
  1766. 9
  1767. 14 CreateMyStyles
  1768. 2 311 1 "Table Text"
  1769. 2 315 1 "Arial" 200 0 1
  1770. 2 319 1
  1771. 6 0
  1772. 15
  1773. 9
  1774. 14 DisplayHelp
  1775. 0 284 "user,FindWindow,HCC" "AmiProWndA" 0
  1776. 13
  1777. 8 1
  1778. 0 798
  1779. 13
  1780. 0 16 [X] "HelpPack.hlp"
  1781. 13
  1782. 8 2
  1783. 5 45
  1784. 8 3
  1785. 0 284 "user,WinHelp,HHCHJ" "{1}" "{2}" 1 "{3}"
  1786. 6 0
  1787. 15
  1788. 9
  1789. 14 FontDlg
  1790. 5 1
  1791. 6 0
  1792. 18 0
  1793. 11 00000255
  1794. 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 0 0 0 0 0 "Helv"
  1795. 13
  1796. 8 4
  1797. 0 271 "FontHandle" 1
  1798. 6 4
  1799. 11 00000217
  1800. 0 264 "FontHandle" "{4}"
  1801. 6 4
  1802. 15
  1803. 9
  1804. 10 00000229
  1805. 5 0
  1806. 15
  1807. 9
  1808. 10 00000834
  1809. 10 00000834
  1810. 5 2
  1811. 6 0
  1812. 18 0
  1813. 11 00000381
  1814. 0 265 "FontHandle"
  1815. 13
  1816. 8 5
  1817. 6 5
  1818. 11 00000356
  1819. 6 5
  1820. 15
  1821. 9
  1822. 10 00000368
  1823. 5 0
  1824. 15
  1825. 9
  1826. 10 00000834
  1827. 5 3
  1828. 6 0
  1829. 18 0
  1830. 11 00000596
  1831. 0 265 "FontHandle"
  1832. 13
  1833. 8 5
  1834. 6 5
  1835. 11 00000558
  1836. 0 44 "{1}" "{2}"
  1837. 13
  1838. 8 6
  1839. 0 284 "user,SendMessage,HHHHJ" "{6}" 48 "{5}" 0
  1840. 5 1
  1841. 15
  1842. 9
  1843. 10 00000570
  1844. 5 0
  1845. 15
  1846. 9
  1847. 10 00000834
  1848. 10 00000834
  1849. 5 4
  1850. 6 0
  1851. 18 0
  1852. 11 00000785
  1853. 0 265 "FontHandle"
  1854. 13
  1855. 8 5
  1856. 6 5
  1857. 11 00000730
  1858. 0 284 "gdi,DeleteObject,HH" "{5}"
  1859. 5 1
  1860. 8 7
  1861. 10 00000740
  1862. 5 0
  1863. 8 7
  1864. 0 266 "FontHandle"
  1865. 6 7
  1866. 15
  1867. 9
  1868. 10 00000834
  1869. 0 3 "Fontdlg received an invalid parameter {0}"
  1870. 6 3
  1871. 15
  1872. 9
  1873. 14 CellEngine
  1874. 0 802
  1875. 13
  1876. 8 6
  1877. 0 16 "{6}" "hIstance"
  1878. 13
  1879. 8 7
  1880. 5 1
  1881. 6 0
  1882. 18 0
  1883. 11 00000427
  1884. 0 297 "LTSCE01.DLL" "CECreateInstance" "HO"
  1885. 13
  1886. 8 8
  1887. 6 8
  1888. 5 0
  1889. 18 0
  1890. 11 00000258
  1891. 0 3 "LTSCE01.DLL not found.  Copy the dll to your windows directory"
  1892. 5 -1
  1893. 15
  1894. 9
  1895. 0 284 "LTSCE01.DLL,CECREATEINSTANCE,HO" &3
  1896. 13
  1897. 8 9
  1898. 0 271 "{7}" 1
  1899. 0 271 "{6}LibId" 1
  1900. 0 264 "{6}Libid" "{8}"
  1901. 0 264 "{7}" "{3}"
  1902. 6 3
  1903. 15
  1904. 9
  1905. 10 00000935
  1906. 10 00000935
  1907. 5 2
  1908. 6 0
  1909. 18 0
  1910. 11 00000531
  1911. 0 271 "{7}" 1
  1912. 0 265 "{7}"
  1913. 13
  1914. 8 3
  1915. 6 3
  1916. 15
  1917. 9
  1918. 10 00000935
  1919. 10 00000935
  1920. 5 3
  1921. 6 0
  1922. 18 0
  1923. 11 00000686
  1924. 0 271 "{7}" 1
  1925. 0 265 "{7}"
  1926. 13
  1927. 8 3
  1928. 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{3}" "{1}" &4
  1929. 6 4
  1930. 15
  1931. 9
  1932. 10 00000935
  1933. 10 00000935
  1934. 5 0
  1935. 6 0
  1936. 18 0
  1937. 11 00000935
  1938. 0 271 "{7}" 1
  1939. 0 271 "{6}LibId" 1
  1940. 0 265 "{7}"
  1941. 13
  1942. 8 3
  1943. 0 265 "{6}LibId"
  1944. 13
  1945. 8 8
  1946. 6 3
  1947. 11 00000878
  1948. 0 284 "LTSCE01.DLL,CEDESTROYINSTANCE,HH" "{3}"
  1949. 0 298 "{8}"
  1950. 0 266 "{7}"
  1951. 0 266 "{6}LibId"
  1952. 10 00000935
  1953. 10 00000935
  1954. 6 2
  1955. 15
  1956. 9
  1957. DIALOG Table
  1958. -2134376448 28 25 33 269 138 "" "AmiDialog" "Calculate Loan Payment Table" 
  1959. FONT 8 "Helv" 
  1960. 68 49 32 12 8000 1350631424 "edit" "" 0 
  1961. 68 63 32 12 8001 1350631424 "edit" "" 0 
  1962. 68 96 32 12 8002 1350631424 "edit" "" 0 
  1963. 68 121 25 12 8003 1350631424 "edit" "" 0 
  1964. 195 66 32 12 8004 1350631424 "edit" "" 0 
  1965. 195 80 32 12 8005 1350631424 "edit" "" 0 
  1966. 195 115 32 12 8006 1350631424 "edit" "" 0 
  1967. 224 2 40 14 1 1342373889 "button" "OK" 0 
  1968. 224 18 40 14 2 1342373888 "button" "Cancel" 0 
  1969. 11 30 116 17 1000 1342177280 "static" "Fillededit max and min" 0 
  1970. 153 83 36 10 1001 1342177280 "static" "Minimum:" 0 
  1971. 25 52 34 10 1002 1342177280 "static" "Maximum:" 0 
  1972. 137 48 126 17 1003 1342177280 "static" "Filledit max min amt" 0 
  1973. 25 66 32 10 1004 1342177280 "static" "Minimum:" 0 
  1974. 153 69 37 10 1005 1342177280 "static" "Maximum:" 0 
  1975. 12 124 55 8 1006 1342177280 "static" "Annual interest rate:" 0 
  1976. 25 99 40 10 1007 1342177280 "static" "Step value:" 0 
  1977. 11 78 107 16 1008 1342177280 "static" "Filledit dollar increments" 0 
  1978. 11 110 127 10 1009 1342177280 "static" "FillEdit annual interest" 0 
  1979. 3 3 217 26 1010 1342177280 "static" "Filledit lot of text" 0 
  1980. 137 97 130 16 1011 1342177280 "static" "Filledit increments year" 0 
  1981. 153 118 36 10 1012 1342177280 "static" "Step value:" 0 
  1982. 2 30 8 9 1013 1342177280 "static" "1." 0 
  1983. 2 78 8 9 1014 1342177280 "static" "2." 0 
  1984. 2 110 8 9 1015 1342177280 "static" "3." 0 
  1985. 129 48 8 9 1016 1342177280 "static" "4." 0 
  1986. 129 97 8 9 1017 1342177280 "static" "5." 0 
  1987. 95 124 8 9 1018 1342177280 "static" "%" 0 
  1988. 00021381
  1989.