Array conversions
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
ABL supports conversions between COM Array data types and ABL arrays (data
types with extents like AS INTEGER EXTENT 5.) The
conversion for arrays follows the conversions listed in the table
Conversions from ABL to COM data types.
In addition, COM arrays, including those returned from methods and properties of ActiveX or Automation objects, can be used in ABL anywhere an ABL EXTENT object is permitted. For example:
|
The COM object viewer will show the return value of a method or property
that returns an array as [ <type>-Array = ]
rather than as [ <type>-Var = ]. For example:
|
You also cannot get or set the value of an individual COM array element
without first storing the entire array into an ABL EXTENT variable. For example, each of the following will result in a
runtime error:
|