An ABL INTEGER larger than its .NET destination
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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:
|
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.
Note: The
AS option
in a method parameter identifies the specific .NET data type
that the method parameter takes. For more information, see Pass ABL data types to .NET constructor and method parameters.