Results 1 to 4 of 4

Thread: saving listview items as a total in my.settings

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2008
    Posts
    413

    saving listview items as a total in my.settings

    ok, I have a "sum" for ading the total prices in list view. The prices are in the sub items. After they are added up ( they display as total: £{0}) how would I save them to add up later amongs other things I have saved in my.settings???

    Dan

  2. #2
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: saving listview items as a total in my.settings

    Quote Originally Posted by danielpalfrey View Post
    ok, I have a "sum" for ading the total prices in list view. The prices are in the sub items. After they are added up ( they display as total: £{0}) how would I save them to add up later amongs other things I have saved in my.settings???

    Dan
    your question is not clear... but... if ur askin what i think ur asking..

    can you not store them in an arraylist in your settings file?... or a generics/ collection?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2008
    Posts
    413

    Re: saving listview items as a total in my.settings

    Quote Originally Posted by zxed View Post
    your question is not clear... but... if ur askin what i think ur asking..

    can you not store them in an arraylist in your settings file?... or a generics/ collection?
    I possibally could. But I am unsure on how these things work. I know that by saving them as "Double" I can later add them up. But what I was planning on doing, is getting there total and only storing that. Because there is a section of the form that adds them up already, but later, I will need there total so that they can then be added with other numbers for a "grand total"
    Last edited by danielpalfrey; Mar 17th, 2009 at 05:44 PM. Reason: spelling error

  4. #4
    Lively Member
    Join Date
    May 2008
    Posts
    75

    Re: saving listview items as a total in my.settings

    Quote Originally Posted by danielpalfrey View Post
    I possibally called. But I am unsure on how these things work. I know that by saving them as "Double" I can later add them up. But what I was planning on doing, is getting there total and only storing that. Because there is a section of the form that adds them up already, but later, I will need there total so that they can then be added with other numbers for a "grand total"
    go to ur project properties,. add a new item., for the Type,. you need to select an arraylist., you will need to browse., for the correct type.,
    select system.collections., in tehre you will have arraylist...

    now when you do my.settings.yourarraylist you will be able to do things like
    my.settings.yourarraylist.add(the items cost)...

    later you can recurse the arraylist and get your total...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width