Closed BertDeTemmerman closed 5 years ago
We are limited in changing public function signatures. You can use a local text variable to pass validation:
var EMail: text;
EMail := "E-Mail";
MailManagement.ValidateEmailAddressField(EMail);
"E-Mail" := CopyStr(EMail,1,maxstrlen("E-Mail"));
Thank you for the answer and the workaround. But I will not do something such ridiculous for a simple codecop warning that's never going to be a problem ... I will just ignore the warning.
Have an e-mail field in a table and call in the onvalidate
ValidateEmailAddressField
Codecop gives warning "Possible overflow assigning 'Text' to 'Text[80]'.AL(AA0139)" Cause
ValidateEmailAddressField(VAR EmailAddress : Text)
passes the field as var but as textSo shouldn't
ValidateEmailAddressField
pass this variable as text[80] instead of Text?