And Or bit operation question
I have a custom message box type thing and I'm not sure how to do this. I want to know how to set up the select case statement.
Anything you can tell me about how to do this is appreciated. I've never understood bitwise comparison, so I always use brute force in these situations - I.e. check every possible combination.
VB Code:
Public Enum CommandButtons
cbOK = 0 ' Default ' Should I start with 0 ???
cbCancel = 1
cbYes = 2
cbNo = 4
cbPrevious = 8
cbNext = 16
cbQuestion = 32
cbHelp = 1024
cbDontShowAgain = 2048
End Enum
Sub DisplayButtons(iValue as long)
' iValue needs to be split up to display the proper buttons
' How do I write this sub????
Select case iValue
End Select
End Sub