Hi,
after migrating my projects from Scriptcase 8 to 9, i noticed that some grid give the following error:
“Parse error: syntax error, unexpected ‘Picenardi’ (T_STRING), expecting ‘]’ in D:\Programmi\NetMake\v9\wwwroot\scriptcase\app\Ass Web\grid_collaboratori\grid_collaboratori_resumo_s c_free_group_by.class.php(4064) : eval()'d code on line 2”
Code:
$contr_arr = “”;
foreach ($_SESSION[‘sc_session’][$this->Ini->sc_page][‘grid_collaboratori’][‘SC_Gb_Free_cmp’] as $cmp_gb => $resto)
{
$Name_orig = (isset($SESSION[‘sc_session’][$this->Ini->sc_page][‘grid_collaboratori’][‘SC_Gb_Free_orig’][$cmp_gb])) ? $SESSION[‘sc_session’][$this->Ini->sc_page][‘grid_collaboratori’][‘SC_Gb_Free_orig’][$cmp_gb] : $cmp_gb;
$Cmp_temp = "quebra" . $Name_orig . “orig";
$Cmp_format = "quebra” . $Name_orig;
$Format_tst = $this->Ini->Get_Gb_date_format(‘sc_free_group_by’, $cmp_gb);
$Prefix_dat = $this->Ini->Get_Gb_prefix_date_format(‘sc_free_group_by’, $cmp_gb);
$Cmp_arg = $this->Ini->Get_arg_groupby($$Cmp_temp, $Format_tst);
$Cmp_formt = $this->Ini->GB_date_format($$Cmp_format, $Format_tst, $Prefix_dat);
$contr_arr .= “[’” . $Cmp_arg . “’]”;
$arr_name = "array_total" . $cmp_gb . $contr_arr;
$cmp_look = “Cmp_formt”;
$cmp_orig = “Cmp_arg”;
eval (’
if (!isset($this->’ . $arr_name . ‘))
{
$this->’ . $arr_name . ‘[0] = 1;
$this->’ . $arr_name . ‘[1] = 1;
$this->’ . $arr_name . ‘[2] = "’ . addslashes($$cmp_look) . ‘";
$this->’ . $arr_name . ‘[3] = "’ . $$cmp_orig . ‘";
}
else
{
$this->’ . $arr_name . ‘[0]++;
$this->’ . $arr_name . '[1]++;
}
[SIZE=12px]row 4064 -----> '); [/SIZE]
}
Thanks.