views:

212

answers:

2

I found the following article : here about installing fonts on a Windows computer via a script. The author uses VBScript to do that, but I'd like to use Ruby/Python. There is a line in the script I don't understand :

Const FONTS = &H14&

What is that &H14&? Is it a number? How would I represent that in another language?

+3  A: 

It's a number in hexadecimal. &H14& can be written in some programming languages as 0x14.

The value is used to represent the special folder "Fonts" .. more info

Aziz
+3  A: 

The &H prefix is used to write a number in hexadecimal. The hexadecimal number 14 is the decimal number 20.

The & suffix means that the number is of the type Long (32 bit integer).

So, &H14& is a numeric literal of the type Long with the value 20.

Guffa