Minnette


Hello, I'm trying to understand what the &H& numbers represent Does anyone know I'm new to anlayzing code and trying to resolve a problem looking at code but not sure what the "&Hxxxxxx" represent

Consants, Hex number to be converted, what

Thanks to anyone that can answer my questions.

Public Enum enumFileDialog
cdlOFNReadOnly = &H1
cdlOFNOverwritePrompt = &H2
cdlOFNHideReadOnly = &H4
cdlOFNNoChangeDir = &H8
cdlOFNSHOWHELP = &H10
cdlOFNNoValidate = &H100
cdlOFNAllowMultiselect = &H200
cdlOFNExtensionDifferent = &H400
cdlOFNPathMustExist = &H800
cdlOFNFileMustExist = &H1000
cdlOFNCreatePrompt = &H2000
cdlOFNShareAware = &H4000
cdlOFNNoReadOnlyReturn = &H8000
cdlOFNNOTESTFILECREATE = &H10000
cdlOFNNONETWORKBUTTON = &H20000
cdlOFNNoLongNames = &H40000
cdlOFNExplorer = &H80000
cdlOFNNoDereferenceLinks = &H100000
cdlOFNLongNames = &H200000




Re: What Language represents &H100&

spotty


These are simply the values for each of member of the enumeration expressed as a hexidecimal (base 16) value, instead of the usual decimal (base 10 ) system we use in everyday life.





Re: What Language represents &H100&

kleinma

&H is a prefix put on a number to indicate it is a hex number.

From MSDN

The compiler normally construes an integer literal to be in the decimal (base 10) number system. You can force an integer literal to be hexadecimal (base 16) with the &H prefix, and you can force it to be octal (base 8) with the &O prefix. The digits following the prefix must be appropriate for the number system. The following table illustrates this.

Number Base Prefix Valid Digit Values Example

Hexadecimal (Base 16) &H 0-9 and A-F &HFFFF

Octal (Base 8) &O 0-7 &077







Re: What Language represents &H100&

Minnette

Thanks for replying, I'm learning!




Re: What Language represents &H100&

Minnette

Thanks kleinma!