BASICHELP.HLB  —  Compile time errors, DEFNOTWHE
  ERROR - A DEF function definition is not allowed in a  WHEN  block  or
  its  associated  handler.   Remove  the  DEF  function definition from
  within the WHEN block or handler.
Close Help