dQuiz #3
Test Your dBASE I.Q.
by Peter Rorlick, dBVIP


Look at the code below, and try to guess what message boxes the user will see when the code is run.
 
 
local x
try
  x := 1
catch( exception e )
  msgbox('A')
  return
finally
  msgbox('B')
endtry
msgbox('C')
   

Once you’ve made your guess, type this in Command window:  modify command dQuiz3.

Paste the code above into the program editor, and press F2 to run it.  Did you guess correctly?

Click here for the answer and an explanation.


Note: The author would like to thank Flip Young, his proof-reader, for the improvements she brought to this text.