VB Code:
Private Sub FindOrderedVia(ByVal vintValue, ByVal vintUpper As Integer, ByRef ropt() As OptionButton)
On Error GoTo Error_FindOrderedVia
Dim intLoop As Integer
gerrError.PushErrorStack "FindOrderedVia", Me.Name
For intLoop = 0 To vintUpper
If intLoop = vintValue Then
ropt(intLoop) = True
Else
ropt(intLoop) = False
End If
Next intLoop
Exit_FindOrderedVia:
gerrError.PopErrorStack
Exit Sub
Error_FindOrderedVia:
gerrError.ErrorHandler "FindOrderedVia", Me.Name, Err.Number, Err.Description
Resume Exit_FindOrderedVia
End Sub