-- must have been non-printable character embedded in the command line.
Discovery by
(1) Creating a standalone to invoke the class.
(2) Invoked the class function using literal values (surprise: worked as expected).
(3) Replaced the literals one at a time with the variables (i.e. 3 tests) (surprise: worked as expected).
(4) Went back to the class in my system, commented out the original code line, and repeated (2) and (3) above. (same surprises).
(5) Compared original code to the replacement code that works -- no difference -- except that it worked.
Code that works:
Code:
$recapList = $recapObj->GetRecapList($this->selectVals['student'],$this->selectVals['sessionyear'], $this->selectVals['session']);
Original code that still gives the
Cannot use object ... as array
error
Code:
$recapList = $recapObj->GetRecapList($this->selectVals['student'],$this->selectVals['sessionyear'], $this->selectVals['session']);
I see no difference.
Very aggravating.
Regards,
grNadpa
Bookmarks