PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

variant_abs> <com_release
Last updated: Fri, 18 Jul 2008

view this page in

com_set

(PHP 4)

com_set — Asigna un valor a una propiedad de un componente COM

Descripción

void com_set ( resource $objeto_com , string $propiedad , mixed $valor )

Establece el valor de la propiedad del componente COM referenciado por objeto_com . Devuelve el valor nuevo definido si tiene éxito, FALSE en caso de error.

Example #1 No use com_set(), use la sintaxis OO en su lugar

<?php
// haga esto
$obj->propiedad $valor;
// en lugar de esto:
com_set($obj'propiedad'$valor);
?>

Note: Esta función no existe en PHP 5. En su lugar, se debería emplear la forma más directa y natural de la sintaxis OO.



add a note add a note User Contributed Notes
com_set
dan at kuykendall dot org
16-Aug-2002 04:38
This should also work using the newer OOP style that is still undocumented.

<?php
$obj
= new COM('Some.app');
$obj->somevar = 'somevalue';
?>

variant_abs> <com_release
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites