Use helper methods where possible, and leave GUI stuff in form units.

This commit is contained in:
Ansgar Becker
2009-04-28 22:35:00 +00:00
parent 8610147eaa
commit eadeed1ae2
5 changed files with 12 additions and 15 deletions

View File

@ -102,7 +102,10 @@ begin
if LB <> '' then
text := WideStringReplace(text, LB, CRLF, [rfReplaceAll]);
CheckAndWarnIfNulChar(text);
if ScanNulChar(text) then begin
MessageDlg(SContainsNulCharGrid, mtInformation, [mbOK], 0);
text := RemoveNulChars(text);
end;
// TODO: Find out why the Delphi IDE insists hinting that this
// property is ANSI when it is in fact a WideString.