pascalabcnet/InstallerSamples/!Tutorial/07_CharString/Char1.pas

13 lines
337 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Стандартные функции Ord Chr
var
i: integer;
c: char;
begin
c := 'z';
i := Ord(c);
writelnFormat('Код символа {0} в кодировке Windows равен {1}',c,i);
i := 193;
c := Chr(i);
writelnFormat('Символ с кодом {0} в кодировке Windows - это {1}',i,c);
end.