Jump to content
The.Dino

New GExperts under Delphi 7

Recommended Posts

Hi,

 

We still use Delphi 7 i in my company and with all new versions of GExperts we have a problem with Uses Clause Manager (and propably with some others functions that modify the code). Delphi 7 doesn't use UTF8 in files but offten may contains charachters which look like UTF8 (are great than 127) for example national signs in comments (in our case, Polish). The changes that were added to UTF8 support for Delphi 8 and up do not work well under previous versions of Delphi (the text is pasted in the wrong place). I fixed it and in the attachment is the patch file. Maybe you will include it in one of the next versions.

 

Thanks

GX_OtaUtils.pas.patch

Share this post


Link to post
5 hours ago, The.Dino said:

We still use Delphi 7 i in my company and with all new versions of GExperts we have a problem with Uses Clause Manager (and probably with some others functions that modify the code). Delphi 7 doesn't use UTF8 in files but often may contains characters which look like UTF8 (are great than 127) for example national signs in comments (in our case, Polish). The changes that were added to UTF8 support for Delphi 8 and up do not work well under previous versions of Delphi (the text is pasted in the wrong place). I fixed it and in the attachment is the patch file. Maybe you will include it in one of the next versions.

Thanks a lot for this. I'll have a look.

 

Could you also please provide an example for a unit which requires this change?

Share this post


Link to post

It's attached. I also put a screenshot of what it looks like under Delphi. If you try add any unit to one of uses sections it will be placed in wrong place.

TestUnit.pas

TestUnitAfterAddControls.png

TestUnitBefore.png

  • Thanks 1

Share this post


Link to post

verified and committed in revision #3842

Thanks again.

  • Thanks 1

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
×