Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the '#" symbol in Pascal?

Tags:

delphi

pascal

For example:

x := #123;

I tried to search around Google but I simply have no idea what this means.

like image 812
Yana D. Nugraha Avatar asked Jun 04 '10 14:06

Yana D. Nugraha


2 Answers

IIRC it means a character value of the number (eg. #32 -> space).

like image 113
jpalecek Avatar answered Sep 20 '22 14:09

jpalecek


#123 is a character (Char type) of the ordinal value 123.

like image 31
Ondrej Kelle Avatar answered Sep 20 '22 14:09

Ondrej Kelle