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
Tip
Starting with Delphi version 10.3, if you use a custom attribute that is not known to the compiler (because you typed it incorrectly or a unit is missing in the uses statement), you will receive a Warning:
Warning: W1074 Unknown custom attribute
It is recommended to transform this Warning into an error, so that correction is mandatory, to do so enter:
{$WARN UNKNOWN_CUSTOM_ATTRIBUTE ERROR}
To submit a pull request, follow these steps:
git checkout -b minha-nova-funcionalidade)git commit -am 'Functionality or adjustment message')git push origin Message about functionality or adjustment)