Using data-type specifiers for method parameters
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
For a method parameter, you can also use a data-type specifier from the table Data-types for COM object methods and properties. For COM objects that do not have Type Library definitions and yet require that the data type of the parameter be passed properly, you must specify the data type for the method call to succeed. For example:
|
In addition, you can use the BY-POINTER
or BY-VARIANT-POINTER type option to indicate that the
parameter is to be passed as a pointer. For example:
|
A pointer is a value that contains the
memory location of the data item you are referencing. BY-POINTER specifies a pointer to the data item value. BY-VARIANT-POINTER specifies a Variant that contains a
pointer to another Variant that stores the actual value.
Both the BY-POINTER and BY-VARIANT-POINTER options have no affect on the value of
the parameter. They only affect how the data is packaged when the method is dispatched
to the COM object. The type option to use, if any, is determined by the method
implementation. You can determine the type options required for each parameter from the
OpenEdge COM Object Viewer (see Locating COM object information on your system).