View Single Post
Old 06-05-2002, 03:46 PM   #2
doctorgonzo
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
I would try something like this (I have done similar things with bit flags before, just nothing going the other way)

Quote:
For counter = 1 To 4
If (OutVal And (2 ^ (counter - 1))) = 2 ^ (counter - 1) Then
CurList.Selected(counter) = True
End If
Next
doctorgonzo is offline   Reply With Quote