CodeSnip Old Code (SVN)
A repository for source code snippets, designed with Pascal in mind.
Brought to you by:
delphidabbler
--- a/trunk/Src/FmProxyServerDlg.pas +++ b/trunk/Src/FmProxyServerDlg.pas @@ -113,10 +113,10 @@ uses // Delphi - SysUtils, Windows, + SysUtils, Windows, Character, // Project UConsts, UExceptions, UFontHelper, UMessageBox, USettings, UStructs, - USystemInfo, UUnicodeHelper, UUtils; + USystemInfo, UUtils; {$R *.dfm} @@ -185,7 +185,7 @@ const cDot = '.'; // dot separator (not decimal point) begin - if not IsDigit(Key) and (Key <> cDot) and (Key <> BACKSPACE) then + if not TCharacter.IsDigit(Key) and (Key <> cDot) and (Key <> BACKSPACE) then Key := #0 else if (Key = cDot) and ( (edIPAddress.SelStart = 0) or (CountDelims(edIPAddress.Text, cDot) = 3) @@ -201,7 +201,7 @@ @param Key [in/out] Key pressed. Set to #0 if key is not permitted. } begin - if not IsDigit(Key) and (Key <> BACKSPACE) then + if not TCharacter.IsDigit(Key) and (Key <> BACKSPACE) then Key := #0; if Key = #0 then KeyErrorBeep;