Screencast-O-Matic is the free and easy way to record your screen.   Try our free Screen Recorder!

String Methods and RadioButtons

Created: Nov 11 2015

Description

Using RadioButtons in a GroupBox; String methods, including .ToUpper, .ToLower, .Length, .IndexOf(), .Substring(). Also IsNumeric() Shell program located at http://bowerpower.net/compprog1/vb04/StringMethodsAndRadioButtons.zip How could you use an IF block to address a program that crashes when it searches for a subtring that is longer than the original string (try using a three-letter word in the program we created - it should crash)?

Notes

0:43

Validate input (make sure users put something in textboxes)

2:34

Comparing strings with = , <, >

5:31

Add a GroupBox and two RadioButtons (three-letter prefix for RadioButtons is rad)

6:44

When a group of RadioButtons is in a GroupBox, exactly one of them must be checked

7:28

Use if to discover which RadioButton is checked

8:13

.ToUpper and .ToLower

9:29

.Length - how many characters are in a String

10:04

.IndexOf( ) - looking for the position/index of a specific character or substring (group of characters)

12:37

IsNumeric(put a String in here to check out)

14:31

.Substring - finding a smaller string inside a larger string

Advertisement