In Visual Basics, collect two strings from two different textboxes on the screen
ID: 3773304 • Letter: I
Question
In Visual Basics, collect two strings from two different textboxes on the screen and send those two strings into a function. Create the function so that that will take in two strings. You will now convert the strings to numbers. MUST TRY TO CONVERT TO NUMBERS. If both values do not convert to numbers then return “Both values not numbers.”; if they both convert to numbers then return “Both values are numbers.”; if one of them can be converted to numbers then return “One value is a number.”. You will display the message you received from the function in a label on the form after it is returned from the function to the button click event.
Explanation / Answer
Sample code:
Form design:
Sample output:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.