Question

In visual basic is the if/then/else the only way a program can choose which path to...

In visual basic is the if/then/else the only way a program can choose which path to follow or are there other ways?

Homework Answers

Answer #1

You can use the goto statements, or select Case statements to change the path..

GoTo line 

===================================================

Select [ Case ] testexpression  
    [ Case expressionlist  
        [ statements ] ]  
    [ Case Else  
        [ elsestatements ] ]  
End Select  
**************************************************

Thanks for your question. We try our best to help you with detailed answers, But in any case, if you need any modification or have a query/issue with respect to above answer, Please ask that in the comment section. We will surely try to address your query ASAP and resolve the issue.

Please consider providing a thumbs up to this question if it helps you. by Doing that, You will help other students, who are facing similar issue.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Visual Basic Write a simple program in Visual basic to make addition and subtraction for two...
Visual Basic Write a simple program in Visual basic to make addition and subtraction for two integer numbers
(C Programming Language) (MULTIPLE FORMS – HAPPY BIRTHDAY MESSAGE) Write a Visual Basic program to request...
(C Programming Language) (MULTIPLE FORMS – HAPPY BIRTHDAY MESSAGE) Write a Visual Basic program to request a date in the form of mm/dd/yyyy. If your date of birth is entered, display on a second Form the message                                                 BEST DATE IN HISTORY !                                                 HAPPY BIRTHDAY TO ME !! For any other date, display on a third Form the message                                                 Just Another Day.                                                 No Big Deal. Demonstrate your working program for the Instructor. Include a commented listing with...
in C++ Write a program to use the IF ELSE statement in the following way. Have...
in C++ Write a program to use the IF ELSE statement in the following way. Have the user input a value, x If the value is less than 100, present, "you got 5% interest" and display on the screen the total of the X*1.05 Else print on the screen, "you got 10% interest", and display the value X*1.10.
Fiscal policies can work only if private enterprises respond to them in certain way; if they...
Fiscal policies can work only if private enterprises respond to them in certain way; if they respond in other ways, the policies fail. Explain and give examples.
Eddie has 7 friends, but can only choose 3 of them to accompany him on a...
Eddie has 7 friends, but can only choose 3 of them to accompany him on a cruise. How many ways can this be done?
How could I create a very basic assembly program that is able to use string literals,...
How could I create a very basic assembly program that is able to use string literals, reserved words, and identifiers? I also need to process some directives, instructions, and labels as well. Could someone generate a simple assembly program to do these things? Thank you! My apologies, x86 processors. It's also a 32-bit program! We are using Visual Studio, and writing 32-bit programs. This program can literally do anything, as long as it meets the following requirements as described above.
State two ways in which inflation can be handled in investment analysis. Which way would you...
State two ways in which inflation can be handled in investment analysis. Which way would you recommend and why?
Can anyone else find an incident where finger alteration not only failed, but was detected?
Can anyone else find an incident where finger alteration not only failed, but was detected?
In the basic Bismarck model patients have freedom to choose which hospital to visit patients do...
In the basic Bismarck model patients have freedom to choose which hospital to visit patients do not have freedom to choose which insurance contract to take doctors, investors do not have freedom to choose where to open a new clinic or hospital all of the above none of the above
Jon is considering two (mutually exclusive) investment alternatives. He can either invest in raw land or...
Jon is considering two (mutually exclusive) investment alternatives. He can either invest in raw land or in an existing strip mall. If he invests in raw land, then in three years he will either sell it or else invest in an apartment complex to be built on the land, depending on the residential rental market at that time. If, on the other hand, he invests in a strip mall, in five years he will either sell it or else invest...