Kbase P115769: How to pass an Array as parameter to a COM object in OpenEdge 10
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/11/2006 |
|
Status: Unverified
GOAL:
How to pass an Array as parameter to a COM object in OpenEdge 10
GOAL:
Is it possible to pass an Array parameter to a COM object's method in OpenEdge 10
FACT(s) (Environment):
OpenEdge 10.x
FIX:
In OpenEdge 10, it is now possible to pass an Array to a COM object's method.
Hereafter is an example of code allowing to pass an Array parameter to a COM Object's method:
DEFINE VARIABLE array AS INTEGER EXTENT 2 NO-UNDO.
array[1] = 0.
array[2] = 2.
chExcelApplication:Workbooks:OpenText(cFileName1 /* FileName */
,2 /* Origin as xlWindows */
, /* StartRow */
,2 /* Datatype as xlFixedWidth */
, /* TextQualifier */
, /* ConsecutiveDelimiter */
, /* Tab */
, /* Semicolon */
, /* Comma */
, /* Space */
, /* Other */
, /* OtherChar */
, array /* FieldInfo */
).