The Beginners Guide to Visual Basic Script: With Examples by Kieran Dore

The Beginners Guide to Visual Basic Script: With Examples by Kieran Dore

Author:Kieran Dore [Dore, Kieran]
Language: eng
Format: azw3
Publisher: UNKNOWN
Published: 2017-10-27T16:00:00+00:00


In this example we receive a number input from the user and store it in a variable called num, since we have specified which numbers our program works with, it is a good idea to use a default statement just in case the user inputs an invalid number. Then we open our select case statement and set our expression to check the value of the variable num. If num is 1,3,5,7 or 9 then we chose to output a msgbox saying your number is odd. If num is 2,4,6,8 or 10 then we output a msgbox saying your number is even. If neither of those statements are true, then we go to our default case else statement and output a msgbox saying that number is not from 1-10.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.