mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Use helper methods where possible, and leave GUI stuff in form units.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user