Article View: borland.public.delphi.language.objectpascal
Article #168Need help with class and List property?
From: Stacey
Date: Tue, 04 Sep 2007 14:50
Date: Tue, 04 Sep 2007 14:50
16 lines
1706 bytes
1706 bytes
Hi All,
I'm trying to add a 'list' of options to a class I've created, and
would like some suggestions on the best way to do this.
Say I have a class called TBankOptions. The TBankOptions class is a
general class with several across the board settings, but, within this
class, I need to store more specific options for each company. I'd
like to be able to access them this way:
BankOptions.CompanyOptions('CompanyName').Option1 and
BankOptions.CompanyOptions('CompanyName').Option2, etc.
What is the best way to do this?
Thanks in advance for any help,
Stacey
Technical Details
Message-ID:
<1188917429.182449.74370@k79g2000hse.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!k79g2000hse.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 109d30,b3c85e9955db2fba,start X-Google-Attributes: gid109d30,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!k79g2000hse.googlegroups.com!not-for-mail From: Stacey <monkeymynd@gmail.com> Newsgroups: borland.public.delphi.language.objectpascal Subject: Need help with class and List property? Date: Tue, 04 Sep 2007 07:50:29 -0700 Organization: http://groups.google.com Lines: 17 Message-ID: <1188917429.182449.74370@k79g2000hse.googlegroups.com> NNTP-Posting-Host: 67.35.127.141 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1188917430 4527 127.0.0.1 (4 Sep 2007 14:50:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 4 Sep 2007 14:50:30 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k79g2000hse.googlegroups.com; posting-host=67.35.127.141; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0