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
提示
从Delphi版本10.3开始,如果您使用编译器不知道的自定义属性(因为您在使用语句中键入它或丢失了单元),则将收到警告:
Warning: W1074 Unknown custom attribute
建议将此警告转换为错误,因此必须进行校正,以便输入:
{$WARN UNKNOWN_CUSTOM_ATTRIBUTE ERROR}
要提交拉动请求,请遵循以下步骤:
git checkout -b minha-nova-funcionalidade )git commit -am 'Functionality or adjustment message' )git push origin Message about functionality or adjustment )