Hi,

When we have next btn script (we have *NO* field "XYZT"), as an example:
**********
on mouseUp
  try
    put 5 into field "XYZT"
  catch lMess
    StopWithMessage "put : Cannot find field "
  finally
    answer "Finally"
  end try
  exit to top
end mouseUp

on StopWithMessage pMess
  answer error pMess
  exit to top
end StopWithMessage
************


IN Rev 1.5, the second answer ("Finally") is executed.
In Rev 2.1 and 2.2, it is not.

The doc's tell the finally section is *always* executed (as in 1.5) :
        "The finally section is always executed even if the try control structure
contains an
         exit or pass statement, so it can be used for final cleanup actions such as
deleting variables."

The doc's do not mention any changes in this keyword since 1.5.

OK, we can :
- put all commands in the finally section into the catch section too, or,
- remove the exit to top from the StopWithMessage handler, or
- ....
but this shouldn't be done following the doc's.


Is this a bug (Tuviah, Scott) ? Or *was* it a bug in 1.5 ?



Regards,
Jan

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to