BUS4 092 Lecture Notes - Lecture 4: Short Circuit, Substring, Data Validation
Document Summary
Chapter 4: making decisions and working with strings. Agenda: the decision structure, ifthe(cid:374) else state(cid:373)e(cid:374)t, select case statement, nested if statements, logical operators, working with strings, input validation, class level variables, gui: radio buttons, check boxes, group box, and message box. Summary so far: we have learned how to create simple applications using vb express. We have learned how to set/change properties of controls using properties box. We have learned what events are and how to define them. We have learned the use of text boxes, variables, named constants, type conversion, and form load: decision structure, sequence a b c d, selection if a c. If the(cid:374) state(cid:373)e(cid:374)t: statements execute if certain conditions hold true, syntax: End if: to test the conditions use relational operators like >, , >=, <=. The outcome of this testing is boolean expression (true or false) Hi(cid:374)t: let vb i(cid:374)sert the if the(cid:374) (cid:272)ode for (cid:455)ou.