Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Wihlelm Bierbaum
February 10, 2005, 11:11 pm
rate this thread
multidimensional array as its sole parameter.
Here's an example of the construction of said array:
$cA = array();
$cA[$adjNum] = new VARIANT($cDesc);Type Code
$cA[$adjNum] = new VARIANT($cLongDesc);Long Description
$cA[$adjNum] = new VARIANT('B');
$cA[$adjNum] = new VARIANT($cPrice);
$cA[$adjNum] = new VARIANT('D');
$cA[$adjNum] = new VARIANT($i);
$result = $awfulComObject->SetAdjustments(new VARIANT($cA), new
The method simply never works out. The COM object on the other end
always says 'Invalid data array'.
I've tried all varieties of messing around with this: casting the
variables in the array to variants (and not doing so), casting the
array itself to variant (and not doing so)... etc...
Does anyone have a better way of constructing a multidimensional array
that works with COM in PHP?
It's rumored that PHP 5 allows for the passing and reading of arrays to
and from COM objects (http://us2.php.net/com )...
"PHP 5 introduces the following new features to make your life
easier: *Access multi-dimensional arrays, or COM properties that
require multiple parameters using PHP array syntax. You can also write
or set properties using this technique. "
Any clues would be very gratefully appreciated -- thanks for reading!
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum