I have a TEdit in Inno Setup and would like to set a maximum of 20 characters:
eDBnameT := TNewEdit.Create(TerminalPage);
eDBnameT.Top := ScaleY(270);
eDBnameT.Left := ScaleX(130);
eDBnameT.Width := ScaleX(200);
eDBnameT.Height := ScaleY(23);
eDBnameT.Text := 'sicar';
eDBnameT.Parent := WizardForm.InnerPage;
eDBnameT.Visible := False;
I have tried with:
eDBnameT.Length := 20;
but it throws me an error.
The property is called
MaxLength
, the way to set the max is to pass the integer just like you pass the values to the other properties: