String Methods and RadioButtons
11/11/2015
|
14:58
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)?
String Methods and RadioButtons
Created: 11/11/2015
00:00:43
Validate input (make sure users put something in textboxes)
00:02:34
Comparing strings with = , <, >
00:05:31
Add a GroupBox and two RadioButtons (three-letter prefix for RadioButtons is rad)
00:06:44
When a group of RadioButtons is in a GroupBox, exactly one of them must be checked
00:07:28
Use if to discover which RadioButton is checked
00:09:29
.Length - how many characters are in a String
00:10:04
.IndexOf( ) - looking for the position/index of a specific character or substring (group of characters)
00:12:37
IsNumeric(put a String in here to check out)
00:14:31
.Substring - finding a smaller string inside a larger string