Jump to content
Ian Branch

'Default Sort All Classes' issue.

Recommended Posts

Hi Uwe,

D11.3, latest MMX.

If I have this code in my type declaration:

{code}

....

    procedure FormShow(Sender: TObject);
    procedure IndexOrdChange(Sender: TObject);
  private
    const iWidth = 920;
  end;

implementation

''''

{code}

 

The function changes it to this:

{code}

....

    procedure FormShow(Sender: TObject);
    procedure IndexOrdChange(Sender: TObject);
  private

  const                                       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    const iWidth = 920;
  end;

implementation

''''

{code}

Which of course causes an error.

 

If I have this:

{code}

....

    procedure FormShow(Sender: TObject);

{$IFDEF MyTest}
    procedure IndexOrdChange(Sender: TObject);

{$ENDIF}
  private
    const iWidth = 920;
  end;

implementation

''''

{code}

It removes the $IFDEF/$ENDIF block totally.

 

Regards,

Ian

Edited by Ian Branch

Share this post


Link to post

Thanks for reporting. I know that MMX has problems with those one-line declarations and conditional defines. I have added these two to the bug tracker.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×