EBSILON®Professional Online Documentation
In This Topic
    VM-State
    In This Topic

    VM-State

     

    Name

    Purpose

    Arguments

    Return value

    Example

    enableRealDivBy ZeroException

    allows to change the behaviour of the virtual machine concerning divisions by 0.

    If the exception is enabled (default state), a division by 0 will stop the execution of the EbsScript and raise a message box.

    If the exception is disabled, the EbsScript execution continues with a result of "infinite" for the division.

    1: BOOLEAN
    true=enabled
    false=not enabled

    none

    var

      r1,r2:real;

    begin

      if (isRealDivByZeroException) then

      begin

        println ("DivByZero raises
                     an exception");

      end

      else

      begin

         println ("DivByZero does not
                     raise an exception");

      end;

    end.

    isRealDivBy ZeroException

    checks the state of the virtual machine, whether a division by 0 raises an exception or whether the program execution shall be continued

    none

    BOOLEAN
    true=enabled
    false=not enabled