In Visual Basic there are some controls properties that return you a Boolean value which can be as condition in the testing. For example, option buttons returns true when they are selected and returns you false when they are not.

 

These Boolean variables can be tested as follows:

 

If optFreshman.Value = True Then

mintFreshmanCount = mintFreshmanCount + 1

ElseIf optSophomore.Value = True Then

mintSophoreCount = mintSophoreCount + 1

End If

 



Dinesh ThakurDinesh Thakur is a Columinist and designer with strong passion and founder of Computer Notes. if you have any ideas or any request please get @me on
linkedin FaceBook Twitter Google Plus