answersLogoWhite

0

Selection is a programming concept or structure referring to the ability to make choices in a programming language. This is critical to programming. It is what enables a program do different things. The code allows you to select one of several different options, depending on some scenario. The most common way of implementing a selection in Visual BASIC and most languages, is an IF command. So for example if you had an exam score for a person and wanted to say if they had passed or failed based on the pass mark being 40, you could have a statement like this, where the result is in the variable called intResult.

If intResult>=40 Then

MsgBox("Pass")

Else

MsgBox("Fail")

End If

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: What is selection Visual BASIC?
Write your answer...
Submit
Still have questions?
magnify glass
imp