I'm new to the whole binary constants thing, but from what I understand, for the math to work out right, each constant should be assigned a number that is a power of 2. Hex, as you said, is basically compressed binary, so here is my list of constants. My intention is that all of these switches can be stored in one Long variable.
1st of all, on a basic level, am I going about this in an intelligent way, or is this bad programming?
2nd - note how I had to replace &h8000 with the base 10 equivalant. Does everybody have to do this, do people just skip that number (it's the only one that comes out negative), or is there another way to say it in hex. Or does it not matter that it's negative, because the math will function just fine anyways...
'Constants to Control Form Operation
Private Const IF_IsSubForm As Long = &H1
Private Const IF_LinkItem As Long = &H2
Private Const IF_LinkItemSubForm As Long = &H4
Private Const IF_PreviewItem As Long = &H8
Private Const IF_UpdateItem As Long = &H10
Private Const IF_LinkUOM As Long = &H20
Private Const IF_PreviewUOM As Long = &H40
Private Const IF_UpdateUOM As Long = &H80
Private Const IF_PreviewCode As Long = &H100
Private Const IF_UpdateCode As Long = &H200
Private Const IF_DblClickUpdate As Long = &H400
Private Const IF_EnterKeyUpdate As Long = &H800
Private Const IF_EscKeyCancel As Long = &H1000
Private Const IF_TabKeyExit As Long = &H2000
Private Const IF_HideOnCleanup As Long = &H4000
Private Const IF_DisableOnCleanup As Long = 32768
Private Const IF_ShowBorder As Long = &H10000
Private Const IF_HideStock As Long = &H20000
Private Const IF_HideLinks As Long = &H40000
Private Const IF_HideResetBtn As Long = &H80000