C4D Validate Components
v1.1.1

boss install github.com/Code4Delphi/C4D-Validate-Components
..C4D-Validate-ComponentsSrc
uses
C4D.Validate.Components;
[FieldDisplay('Name')]
[NotEmpty]
[Length(5, 15)]
edtName: TEdit;
TC4DValidateComponents.Validate(TClasseDoForm, Self);
[FieldDisplay('Name to be displayed')]
[NotEmpty]
[Length(5, 15)]
[MinMaxValue(5, 10)]
[MinMaxDate('01/12/2023', '10/12/2023')]
C4D-Validate-ComponentsSamplesDemo01
Conseil
En commençant par Delphi version 10.3, si vous utilisez un attribut personnalisé qui n'est pas connu du compilateur (car vous l'avez tapé à tort ou si une unité est manquante dans l'instruction USE), vous recevrez un avertissement:
Warning: W1074 Unknown custom attribute
Il est recommandé de transformer cet avertissement en erreur, de sorte que la correction est obligatoire, pour le faire, entrez:
{$WARN UNKNOWN_CUSTOM_ATTRIBUTE ERROR}
Pour soumettre une demande de traction, suivez ces étapes:
git checkout -b minha-nova-funcionalidade )git commit -am 'Functionality or adjustment message' )git push origin Message about functionality or adjustment )