Simple Question... Complex Answer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

How do I pass an ADO Recordset by reference to a COM object function in PHP
v4.3.4?

Cheers,
Keith.

ps. I posted a much more long-winded version of this earlier but it was
screwed up in the Newsgroup somehow, (probably my fault).

eg.  My best guess... dies horribly :(

$AComObject = new COM("AServer.AObject");
$AADORecordSet = new VARIANT(VT_DISPATCH | VT_BYREF);

$AComObject->AFunction($AADORecordSet);

while (!$AADORecordSet->EOF)
{
echo $AADORecordSet->Fields["Field1"]->value . "<br>";
$AADORecordSet->MoveNext();
}


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux