Number, source, description - Answers properties of the VB Err Object
On Error GoTo Variable
'code code code stuff for no errors
Exit Sub
Variable:
Msgbox("error")
Exit Sub
End Sub - Answers Visual Code for Error Handling
Exit sub - Answers statement that causes the program execution to exit out of the current
procedure; for when errors are found in a processing module; also use when an immediate exit
from the current procedure is the best solution
number=rnd()*(high-low)+low - Answers random number function
* - Answers three loops available in VB
counter-controlled - Answers a loop is __ if a variable is incremented or decremented during
each loop cycle
loop variable or loop counter - Answers variable for counter-controlled loops
initialize - Answers you must __ the loop variable prior to the first loop iteration if the loop is
counter-controlled, and add code so the loop variable is properly incremented/decremented
during each loop cycle
pre-test - Answers test condition before body execution
post-test - Answers test condition after each execution; execute at least one time
"loop" - Answers end loops with the command...
while - Answers repetition continues as long as the condition is true
until - Answers repetition continues as long as the condition is false
EXIT DO - Answers when a loop is entered, the body statements are fully executed before the
condition is tested again unless you have __ to prematurely exit loop. If there is neither a while
, or until, the loop is infinite unless __ is executed
'Initialize Sum, Num, then loop
Sum=0
Num=First
Do
Sum=Sum+Num
Num=Num+2
Loop While Num <= Last - Answers post test while loop example
counting loops - Answers use when # iterations are known
For Var = StartValue to EndValue [Step number]
'code code code stuff here
Next Var
'after statement - Answers Logic for counting loops
'Initialize
Sum=0
For Num=First To Last Step 2
Sum=Sum+Num*Num
Next Num
'display
End Sub - Answers Sum Squares Program with Counting For Loop
If/ElseIf/Else/Then etc - Answers *
functions, procedures, and methods - Answers what is the difference?*
how to call?
procedure - Answers any sequence of statements that has a name and is executed in a unit
function - Answers