The following example raises a run-time error because the size of an ABL INTEGER value is incompatible with the .NET data type of a method parameter:
DEFINE VARIABLE iResult AS INTEGER NO-UNDO.
iResult = System.Math:Min
(30000 AS SHORT, 60000 AS SHORT). /* Run-time error */
In this case, the .NET static Min( ) method compares two System.Int16 parameters and returns the smaller value. However, an ABL INTEGER value of 60000 is too large for a signed 16-bit number.