Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everybody,
I tried assign values using hexidecimal notation in Excel 2003 SP2 and found that &hFFFF is not equal to &h10000 - 1 for LONG integers. Sample is he Sub test() Const WorkaroundValue As Long = &H10000 - 1 Const WrongValue As Long = &HFFFF Dim lVal As Long lVal = &HFFFF Debug.Print "lVal: " & lVal & " " & Hex(lVal) If WorkaroundValue = WrongValue Then Debug.Print "Equal" Else Debug.Print "Not Equal: " & WorkaroundValue & "," & WrongValue Debug.Print "In hex: " & Hex(WorkaroundValue) & "," & Hex(WrongValue) End If End Sub Cheers, Alex |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo | Excel Discussion (Misc queries) | |||
Long Long Long Nested If Function | Excel Discussion (Misc queries) | |||
Clearing cells takes long, long time | Excel Discussion (Misc queries) | |||
A list of Consecutive Integers, can I search for missing integers | Excel Worksheet Functions | |||
converting to Integers | Excel Worksheet Functions |