Hint prompt description of H2365 Override method shocould match case of ancestor

Source: Internet
Author: User

This hint will be reported during compilation of delphi:
[Delphi]
[Pascal Hint] *** Frm. pas (111): H2365 Override method *** Form. Createparams shocould match case of ancestor TCustomForm. CreateParams
This is being rewritten.
[Delphi]
Procedure CreateParams (Var Params: TCreateParams); override;

When the prompt appears, the prompt is carefully checked and found to be a big and lowercase error, the upper case P in CreateParams is written as the lower case p, so this prompt will be given, go to the form method and check that it is uppercase P. Change it to OK and solve the problem.
Another Error
[Delphi]
[Pascal Hint] *** Frm. pas (109): H2269 Overriding virtual method '*** Form. createParams 'has lower visibility (private) than base class' *** Form '(protected)

The hint provided by the delphi compiler. The hint indicates that the permission range of the method is unreasonable. I checked the following results and found that the results were originally put under protect under private, so I will give this prompt, change the location, and there is no prompt. Check the delphiform method again, which is put under protect. OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.