DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: maths

  1. #1
    chris Guest

    maths


    I trying to do a math function which splits it self up eg Mortgage quotation
    The deatils are entered on form1 and the results are showen in a list viw
    on form 2

    The customer wants to borrow £55000 over a 25 year period how do i get it
    to show the results for each year in a listview box for example

    Year1 55000,Interest Paid£2477, Monthly Payment £292.30 Capital £1030.95
    Year2 48969,Interest Paid£2477, Monthly Payment £292.30 Capital £1083.70

    And so on till it finished on 25 years

    I Hope some one can help

  2. #2
    marc Guest

    Re: maths




    ListView1.ColumnHeaders.Add (1), , "Year"
    ListView1.ColumnHeaders.Add (2), , "Interest Paid"
    ListView1.ColumnHeaders.Add (3), , "Monthly Payment"
    ListView1.ColumnHeaders.Add (1), , "Capital"

    ListView1.ListItems.Clear

    For lngloop = 25 To 1 Step -1
    ListView1.ListItems.Add 1, , lngloop
    ListView1.ListItems.Add 2, , "Interest"
    ListView1.ListItems.Add 3, , "Payment"
    ListView1.ListItems.Add 4, , "Capital"
    Next


    This code assumes you have not setup the listview at design time, if you
    have ignore the top 4 lines.

    To change the spacing you can use the SendMessageA API call in the user32
    library. I have not use this in a while (pretty sure it is correct) and
    the code I used it in is at my last job, otherwise I would have provided
    a sample.

    Marc

    "chris" <chris@aipgroup.com> wrote:
    >
    >I trying to do a math function which splits it self up eg Mortgage quotation
    > The deatils are entered on form1 and the results are showen in a list viw
    >on form 2
    >
    >The customer wants to borrow £55000 over a 25 year period how do i get it
    >to show the results for each year in a listview box for example
    >
    >Year1 55000,Interest Paid£2477, Monthly Payment £292.30 Capital £1030.95
    >Year2 48969,Interest Paid£2477, Monthly Payment £292.30 Capital £1083.70
    >
    >And so on till it finished on 25 years
    >
    >I Hope some one can help



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links