The syntax to describe the parameters of class methods in this section uses a variation of the ABL Parameter definition syntax, which includes the parameter mode and an AS option to indicate the ABL data type of the parameter. For example:
INPUT value AS DECIMAL
To call an overloaded .NET method (see the Parameter passing syntax reference entry)
When you override an inherited .NET method (see the METHOD statement reference entry)
When you implement a method of a .NET interface (see the METHOD statement reference entry)The ABL data type denoted by the AS option indicates how ABL treats the .NET parameter at run time. The parameter description uses the additional notation when the actual .NET data type of the parameter is a .NET mapped type other than the default match for the specified ABL data type. For information on matching .NET mapped types to ABL data types, see the Data types reference entry. If the .NET data type is not a mapped type or it is the default match for the specified ABL data type, this additional notation does not appear.By convention throughout this section, when a particular parameter definition requires the additional notation, the syntax specifies the corresponding ABL data type and it explicitly the .NET data type mapping using an additional ABL keyword (AS data type) in parentheses (see Table 25). For example, the syntax for a .NET INPUT parameter that takes a single-precision floating-point number is represented as follows:
INPUT value AS DECIMAL (FLOAT)For more comprehensive information on mapping .NET data types to ABL data types, see OpenEdge Development: GUI for .NET Programming.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |