Posts

Showing posts with the label Char

STRING / PCHAR / CHAR in Delphi

STRING / PCHAR / CHAR in Delphi --------------------------------------------- Char ------- Char is a data type that holds only one character as value. Ansi Characters are used to store single byte ansi characters. Unicode characters are used to store 2byte characters that is to cupport foreign languages like chinese, japanese etc. var    chr1 : Char;        // Holds a single character, alphabet    chr2 : WideChar;    // Holds a single character, International alphabet // for Unicode support    chr3 : AnsiChar;    // Holds a single character, alphabet NON-PRINTING OR CONTROL CHARACTERS, NOT USED IN THIS CLASS, INCLUDED FOR INTEREST ONLY   0 Null (nothing)  7 Bell  8 Back space  9 Tab 10 Line feed (new line at present column) 13 Carriage return (return to beginning of line) 26 End of file 27 [Esc] (Escape key) ASCII CHARACTER CODES 32 [space]   64 @ ...