Forum Moderators: coopster & phranque

Message Too Old, No Replies

COM array() as VARIANT

How?

         

aspr1n

4:04 pm on May 9, 2003 (gmt 0)

10+ Year Member



I need to pass two arrays to a COM method, array1(10) as Integer, and array2(10) as String, but can't figure out how to declare it.

I have been using the: $val = new VARIANT() class but still can't get it.

Anyone got any experience in this area, I'm feeling in the dark here.

Cheers,

asp

aspr1n

8:01 pm on May 9, 2003 (gmt 0)

10+ Year Member



Does anyone even know if you can pass multiple arrays into COM methods?

At the moment I am declaring them as:

$val = array( ... );
$ref = new VARIANT( VT_ARRAY ¦ VT_BYREF );
Object->Method( $val, $ref );

The trying to access them via:

$ref->value[ x ];

...answers on a postcard please.

asp