Re: Code Editor shortcut to add methods of Interface?

From: Lee Grissom (Lee.Grissom_at_REMOVETHISquest.com)
Date: 12/09/03


Date: Tue, 9 Dec 2003 11:06:20 -0800

Joanna Carter (TeamB) wrote:
> Class completion will work across units, as long as you put the
> interface unit in the uses clause and, as Maris says, you may need to
> compile to bring class completion up to date.

Ah, I figured out what is really going on. The class completion code is
very picky. I had made two mistakes in a row:
1) If you have the interface method already declared, then of course it
won't show up in the list.
2) If you have _any_ interface method stubbed out in the implementation
section of your class unit that it not declared in the class itself, then
*none* of the interface methods will show up when you press Ctrl+Space in
the class.

You must start with a truly clean slate for it to work correctly. BTW, it
doesn't make any difference whether you attempt to compile or not.

--
Lee


Relevant Pages