Simple Question... Complex Answer?

From: Date: Mon, 24 May 2004 15:28:58 +0000
Subject: Simple Question... Complex Answer?
Groups: php.db 
Request: Send a blank email to php-db+get-34544@lists.php.net to get a copy of this message
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(); }

« previous php.db (#34544) next »