CSC 430 - Review for Quiz 1
Schneider Book - Intro to VB6.0
| objects | |
| events | |
| numbers | |
| strings | |
| I/O | |
| functions |
| IF | |
| SELECT-CASE |
| DO | |
| FOR-NEXT |
| Arrays | |
| Control Arrays |
| Frames | |
| Check Boxes | |
| Option/Radio Buttons | |
| Scroll Bars | |
| Timer Control | |
| Common Dialog Control |
![]()
| text box - used to get data from user | |||||||||||||||||||||||||||||
| labels - to explain what another control is for; to also display output | |||||||||||||||||||||||||||||
| command button - clicked to initiate an action | |||||||||||||||||||||||||||||
| caption property - displayed on a control | |||||||||||||||||||||||||||||
| name property - reference to the control in VB code | |||||||||||||||||||||||||||||
| event - mouse click or key press | |||||||||||||||||||||||||||||
| Format of statements using VB objects: objectname.property = value | |||||||||||||||||||||||||||||
| event procedure - statements executed when an event occurs | |||||||||||||||||||||||||||||
| numeric operations: +, -, *, /, ^ | |||||||||||||||||||||||||||||
| strings: " ... " (a double-quoted set of characters) | |||||||||||||||||||||||||||||
| concatenation operator: + or & | |||||||||||||||||||||||||||||
data types:
| |||||||||||||||||||||||||||||
important conversions:
| |||||||||||||||||||||||||||||
Sequential I/O:
| |||||||||||||||||||||||||||||
Functions:
| |||||||||||||||||||||||||||||
| comments: begin with an ' | |||||||||||||||||||||||||||||
String Functions:
| |||||||||||||||||||||||||||||
Random:
|
![]()
IF Forms:
| IF condition THEN actions ELSE actions END IF | |
| IF condition THEN actions ELSEIF condition actions ELSEIF condition actions ELSE actions END IF |
SELECT CASE FORM:
| SELECT CASE variable CASE value1 actions CASE value2,value3 actions CASE value4 to value5 actions CASE Is > value actions END SELECT |
![]()
| DO WHILE (condition) actions LOOP | |
| DO actions LOOP UNTIL (condition) | |
| EOF(n) - returns true if file #n is positioned at the End-of-File | |
| DIM X AS BOOLEAN 'x can be either TRUE or FALSE | |
| FOR I = startingValue TO endingValue STEP increment actions NEXT I |
![]()
| Arrays: Dim array(1 to n) as datatype ' yields exactly n items in the array; the index goes from 1 to n | |||||||
| Control Arrays: index property of the control = 0 (blank means it's not a control array) | |||||||
| Refer to example on page 343 using the 'month' control array | |||||||
Dynamic Arrays:
|
![]()
| Frames - creating the control first and then dragging it into a frame is bad | |||||||||||
Check Box - more than one can be selected; possible values:
| |||||||||||
Option/Radio Button - possible values
| |||||||||||
Scroll Bars: key properties -
| |||||||||||
Timer : key issues -
| |||||||||||
Common Dialog Control
|
![]()
Designed by Dr
Bernie - Last updated on Wednesday, February 18, 2009