Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 844
bholms Avatar asked Mar 11 '26 01:03

bholms


1 Answers

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
like image 181
JaredPar Avatar answered Mar 12 '26 20:03

JaredPar