Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.pascal.delphi.misc > #314
| From | "Stark" <franco.jommi@tin.it> |
|---|---|
| Newsgroups | comp.lang.pascal.delphi.misc |
| References | <4fcf960a$0$1374$4fafbaef@reader1.news.tin.it> <4fd065b9$0$6961$e4fe514c@news2.news.xs4all.nl> |
| Subject | Re: What is best ? |
| Date | 2012-06-07 16:58 +0200 |
| Message-ID | <4fd0c1ae$0$1387$4fafbaef@reader2.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
Thank you for all of your comments. But I am still unclear on whether it is reasonable to use an obiect oriented approach (my oo approach rather..). I try to explain better what I am doing. I have a working program that does basically the following: - A function (GetBudgetProposals) accesses a dataset where each record represents one account and has 12 fields with the budgets amounts and retrieves the needed data which are retuned in a StringList. - As many StringLists as many accounts are filled from the dataset. Each StringList has the account number and 12 amounts. - These data that are presented on the screen for the user to examine and change. - When done, all the data are written back on the budget dataset. I am using this program to learn object orientation, which I know on theory. My idea of using an oo approach was to create two class objects: the first, for storing each single account data. The second for storing all of the first object. I am stuck at the first, which is the one I gave an example code of. I though I had two alternatives: -Use the above function to retrieve the data and then copy those into my object when creating it, or -Give the object itself this task thorough a similar function. Just let me know if there is any sense in all this. I am sure I will learn more from you, then reading bunch of books (which I am also doing..). PS: As far as your suggestion to use TObjectLis, let me understand your comment. What I am planning to store in this object is a serie of 12 amounts (100, 150, .... 120). I thought I would need a StringList for this. Is this wrong ? PS: You say: > You are using the stringlist as a container for objects... The stringList will contaim amounts. Are they objects?
Back to comp.lang.pascal.delphi.misc | Previous | Next — Previous in thread | Next in thread | Find similar
What is best ? "Stark" <franco.jommi@tin.it> - 2012-06-06 19:41 +0200
Re: What is best ? "Maarten Wiltink" <maarten@kittensandcats.net> - 2012-06-07 10:26 +0200
Re: What is best ? "Stark" <franco.jommi@tin.it> - 2012-06-07 16:58 +0200
Re: What is best ? "Maarten Wiltink" <maarten@kittensandcats.net> - 2012-06-07 17:49 +0200
Re: What is best ? "Stark" <franco.jommi@tin.it> - 2012-06-08 14:59 +0200
Re: What is best ? "Maarten Wiltink" <maarten@kittensandcats.net> - 2012-06-08 16:33 +0200
Re: What is best ? "Rudy Velthuis" <newsgroups@rvelthuis.de> - 2012-06-07 22:28 +0200
Re: What is best ? "S.G" <S.G@none.special.ch> - 2012-06-08 01:07 +0300
Re: What is best ? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-06-08 11:00 +0200
Re: What is best ? "Stark" <franco.jommi@tin.it> - 2012-06-08 15:17 +0200
Re: What is best ? "S.G" <S.G@none.special.ch> - 2012-06-13 09:16 +0200
Re: What is best ? "Maarten Wiltink" <maarten@kittensandcats.net> - 2012-06-14 00:06 +0200
Re: What is best ? "S.G" <S.G@none.special.ch> - 2012-06-14 09:08 +0200
Re: What is best ? "Stark" <franco.jommi@tin.it> - 2012-06-15 16:47 +0200
Re: What is best ? "Maarten Wiltink" <maarten@kittensandcats.net> - 2012-06-15 22:41 +0200
Re: What is best ? "Maarten Wiltink" <maarten@kittensandcats.net> - 2012-06-16 07:27 +0200
Re: What is best ? "Stark" <franco.jommi@tin.it> - 2012-06-16 14:50 +0200
csiph-web