Thanks Neven. Yes I'd thought of making a Policy table inherited from my
Table class, and have this as a component to drop on the form. I thought
maybe it was too hard wired, but I guess not much more than what I wanted to
do with hiding methods (and yes they are methods).

Cheers,
Dave

        
                Dave Jollie
                Developer, TOWER NZ IT
        *
        *: 09 368 4259
        *: 09 306 6801
        *: [EMAIL PROTECTED]
        *: 46 Parnell Rd, Parnell, Auckland

-----Original Message-----
From: Neven MacEwan [mailto:[EMAIL PROTECTED] 
Sent: Friday, 14 November 2003 9:46AM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Another custom component question

Dave

Do you mean properties not methods? The short answer is no, you have two
options

1/ derive a 'Policy' and an 'Advisor' table from a base 'CustomTable'

2/ bitch if properties are accessed when not applicable (this is the nasty
method)
I don't really like this as you are altyering the 'behaviour' of one
property dependant on
another somewhat unrelated property

Neven

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 9:14 AM
Subject: [DUG]: Another custom component question


> Hi all
>
> I drop my custom TTable component on a form and I assign it a table name
on
> the object inspector. If I choose to name it, Policy, then I would like
> certain methods to be exposed when I type "Policy." However, if I name my
> table, Adviser, then when I type "Adviser." in code, I don't want the
policy
> methods to appear. At the moment all existing methods appear. Is there a
way
> to do this at design time, so if the user gives a table name of Policy, it
> then unhides certain methods?
>
> Thanks.
>
>
> Dave Jollie
> Developer, TOWER NZ IT
> *
> *: 09 368 4259
> *: 09 306 6801
> *: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
> *: 46 Parnell Rd, Parnell, Auckland
>
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to