bholms
bholms

Reputation: 39

VBscript, what is mean "Const VARIABLE = &h3&"

As described in the title, I am confused by such initialization as "&h3&". What does this mean? Thank you very much.

Upvotes: 3

Views: 1721

Answers (1)

JaredPar
JaredPar

Reputation: 754943

This declares a long variable with the value 3. Here's a quick break down of the syntax

  • &h: In VB this is the prefix which indicates a hexadecimal number. It's the equivalent of 0x in C / C++ / C#
  • 3: The number 3 which is still just 3 when evaluated as a hexadecimal number
  • &: Specifies it should be a long vs normal integral value

Upvotes: 4

Related Questions