note 36001 added to ref.com
| From: | mkcostello at hotmail dot com | Date: | Mon, 22 Sep 2003 13:35:37 +0000 |
| Subject: | note 36001 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56906@lists.php.net to get a copy of this message | ||
Took me a while to work this out as there is very little help available. Accessing com variables
that are multi arrays can prove tricky.
e.g.
$ex = new COM("application");
$ex->Stock->stSalesBands
is an array A-H [stPrice,stCurrency]
php chucks out an error on this:
$ex->Stock->stSalesBands(C)->stPrice;
so, you have to do this
$tmp = $ex->Stock->stSalesBands(C);
echo $tmp->stPrice;
unset($tmp)
----
Manual Page -- http://www.php.net/manual/en/ref.com.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36001
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36001&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36001&report=yes