It was null
I just created it as a string and it worked.
However I now have another problem to get this to work and that is to create a header that limits itself by the same array
if (is_array($this->dataTypes->data)) {
reset($this->dataTypes->data);
while (list($key, $val) = each ($this->dataTypes->data)) {
if (($val->type != "N/A") && ($key <= $this->formhandler)) {
$reporthtml .= sprintf("<td align=\"center\" nowrap=\"nowrap\">%s</td>", $val->name);
}
//$reporthtml .= sprintf("<td align=\"center\" nowrap=\"nowrap\">%s</td>", $val->name);
}
}