I believe it probably has to do with the data type that the outcome of a multiplication has... if * is used with two integers the output will be an integer, if it is used with an integer and a long integer then the output is a long integer. That outcome of that last if/multiplication cannot be represented as an Integer (and as such overflows).

If you store the TB value in a Long Integer local variable it should work.

What Jorge mentioned is correct , i did some changes in the oml and is working fine. Instead of evaluating the GB and TB value by multiplying i took two variable and assigned the calculated value as default which is working fine .

What Jorge mentioned is correct , i did some changes in the oml and is working fine. Instead of evaluating the GB and TB value by multiplying i took two variable and assigned the calculated value as default which is working fine .

I believe it probably has to do with the data type that the outcome of a multiplication has... if * is used with two integers the output will be an integer, if it is used with an integer and a long integer then the output is a long integer. That outcome of that last if/multiplication cannot be represented as an Integer (and as such overflows).

If you store the TB value in a Long Integer local variable it should work.