3

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

4

1 回答 1

4

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
于 2012-06-06T16:48:20.433 回答