Do it the opposite way... don't use "&" when passing vars to functions, but do use it when receiving values in functions:
<? function test (&$value) { $value = "Hey"; } test($x); print $x; ?> -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Thomas Weidner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hy... > > How can I get back an reference value from an function. > I call an COM-function witch is described as followed : > > int GetCount(Value 1, Value 2, return Value 3) > > Well... 'till now it look like this > > $obj = new COM("comobject"); > $count = -1; > $error = -1; > $error = $obj -> GetCount(1,1,&$count); > > I get back the int value ob GetCount, thats OK. > But how can I get back Value 3 ??? > > Help would be appreciated... > > Thanks > Thomas Weidner > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php