SolveErrors
Delphi Programming

Class Completion Of Object Delphi 2007 bug

12 views

Just got D2007, and have a problem with class completion. Either I have a
misconception about procedural types, or there is a bug in the IDE that
prevents me from using class completion (ctrl shift V), and also renaming
methods in the structure view.

It occurs in any class where I have a procedural member "of object"

Example:

TMyClass = class
private
protected
public
onStatusMessage: procedure(msg: string) of object;

Because of the onStatusMessage and the "of object" specification, class
completion will not work for this class. If I enter a new procedure and hit
Ctrl Shift V, I get this error when it attempts class completion:

Expected ';' but OF found in class TMyClass

Compiles / Links / Runs just fine.

Is this a known bug?

Thanks /steve



More Delphi Programming fixes

Keep forward MDI Child form over other controls.After embedding a form into another form i have focus problem on my first form controls![Delphi 2007] How can i set that delphi start form # from 1(after starting a new VCL project)?"Enable Runtime Themes" blocks running from external programsUsing D6, deploy app with runtime packages..package collections editor?Delphi2007 link with static C-library