|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What are &H100&&H& numbers. ie I am looking at source code and not sure what the &H number represent. 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
Show quote
Hide quote
"Submit2s" <Submi***@discussions.microsoft.com> wrote in message The '&' does double duty.news:AC0C506D-DCB2-4C7B-B074-62BFC13DEDE7@microsoft.com... > Hello, I'm trying to resolving a problem and new to data analysis. What are > &H& numbers. ie I am looking at source code and not sure what the &H number > represent. > > 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 1) The '&H' prefix indicates the following characters are to be considered a number in Hex format. As opposed to the default of decimal format. Note: this has no effect on the actual internal representation of a number. The 'bits' are the same. 2) A trailing '&' is a type-declaration character declaring the type as a Long (4 bytes). Otherwise the value would be considered the default, which is an Integer (two bytes). This can occasionally be an issue when using numbers in bitwise comparisons. hth -ralph
Show quote
Hide quote
"Submit2s" <Submi***@discussions.microsoft.com> wrote in message That means the number is written in hexadecimal, aka base-16. The standard news:AC0C506D-DCB2-4C7B-B074-62BFC13DEDE7@microsoft.com... > Hello, I'm trying to resolving a problem and new to data analysis. What > are > &H& numbers. ie I am looking at source code and not sure what the &H > number > represent. > > Public Enum enumFileDialog > cdlOFNReadOnly = &H1 > cdlOFNOverwritePrompt = &H2 > cdlOFNHideReadOnly = &H4 > cdlOFNNoChangeDir = &H8 > cdlOFNSHOWHELP = &H10 Windows calculator supports Hex/Binary and Decimal. Conversion Table - Decimal - Hexadecimal - Binary http://www.dewassoc.com/support/msdos/decimal_hexadecimal.htm When the declaration ends with an '&', that means the author is making sure the number is treated as a Long data type (vs Integer) -- Ken Halter - MS-MVP-VB - Please keep all discussions in the groups.. In Loving Memory - http://www.vbsight.com/Remembrance.htm > Hello, I'm trying to resolving a problem and new to data analysis. What The &H in front of a number in VB means the characters that follow are > are > &H& numbers. ie I am looking at source code and not sure what the &H > number > represent. Hexadecimal digits (so, those characters will be the digits 0 to 9 plus the letters A to F). The & after the number means the number is a Long data type (that is, it is a 32-bit value). Rick On Thu, 10 May 2007 06:59:01 -0700, =?Utf-8?B?U3VibWl0MnM=?=
<Submi***@discussions.microsoft.com> wrote: >Hello, I'm trying to resolving a problem and new to data analysis. What are Others have explained what it means>&H& numbers. ie I am looking at source code and not sure what the &H number >represent. - try this to see the importance Private Sub Command1_Click() Me.Print &HFFFF ' 16 bit Integer Me.Print &HFFFF& ' 32 bit Long End Sub
VB 10 To Support Native Exe/DLL
Is there anyone uses VS6 on Windows2000 Pro? Exiting from a Do Loop Advice on storage and retrieval A bit of Maths help with arrays Right syntax for EXPRESSION How to control button in the form if i have more than 1 user profi Closing recordset Excuting a command line program from within VB Sending email from app in vb6 to hotmail |
|||||||||||||||||||||||