|
-
Mar 17th, 2009, 04:53 PM
#1
Thread Starter
Hyperactive Member
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
-
Mar 17th, 2009, 05:36 PM
#2
Lively Member
Re: saving listview items as a total in my.settings
 Originally Posted by danielpalfrey
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?
-
Mar 17th, 2009, 05:41 PM
#3
Thread Starter
Hyperactive Member
Re: saving listview items as a total in my.settings
 Originally Posted by zxed
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
-
Mar 17th, 2009, 05:45 PM
#4
Lively Member
Re: saving listview items as a total in my.settings
 Originally Posted by danielpalfrey
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|