September 2001
Intermediate to advanced
768 pages
32h 45m
English
void com_propput(resource identifier, string property_name, mixed property_value)
| identifier | Identifier from com_load() |
| property_name | Name of the property to be set |
| property_value | Value the property is to be set to |
Assigns a value to a property.
Returns:
TRUE on success; FALSE on error
Description:
Assigns a value to a property. This is the same as a variable assignment in normal PHP code. com_propset() and com_set() are aliases for this function. In ASP, the code in the following example would be written as com.PropertyVal = val.
Version:
Existing since version 3.0.3
Example:
$val = "A Value";
$com = new COM("ObjectName.ClassName");
$ret = com_propput($com, "PropertyVal", $val);
|
Read now
Unlock full access