For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2004 > Simple Question... Complex Answer?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Simple Question... Complex Answer?
Keith

2004-05-24, 12:32 pm

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();
}

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com