OptionButton 


 

The following form shows two option buttons grouped in a frame.

 

Option buttons have the value True or False.  To check the value of an option button in a Select Case statement use code like:

Select Case True
     Case optReserved.Value
          Call bookReserved ( theater( ), availableSeats )
     Case optGeneral.Value
          Call bookGeneral ( theater( ), availableSeats )
End Select

The values can also be checked in an If statement.