$comobj = &new COM('MyComlib.ComLib'); // Works
$comobj->FieldValue = "somedata"; // Works
$myval = $comobj->Property("Record"); // Kind of Works.....throws an exception if the value doesn't exist
$comobj->Property("Record") = "otherdata"; // Doesn't Work
I'm able to initialize the object and assign the FieldValue property some data. The last line however doesn't work and instead gives me:
PHP Fatal error: Can't use method return value in write context
Well, I was about to give up when I noticed the pecl extension php_perl. It turns out perl has a method to set properties that take parameters. I was able to successfully compile and install the extension and use the Perl() object to do work on the com objects that had properties like that. If anyone has any information about whetether setting properties with arguments is possible with strictly php or if that's a feature expected to be implemented I would still very much like to know.
Thanks,
--Dan--
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php