SC7 & Variables - NOT showing in form

I am using the following code in the ONLoad event

The problem is that the variables do NOT display correctly on the form
BUT
when I dsplay them in a message they display correctly (attached a screen printout)

THE CODE
{AttCustCode}=[Cust];

$add_days = 0; //adding 30 days
$add_months = 6; //adding nothing to months
$add_years = 0; //adding nothing to years
$sysdate=date(“d-m-Y”);
[due_date] = sc_date($sysdate, “dd/mm/yyyy”, ‘+’, $add_days, $add_months, $add_years);
{TrialVersionExpiry}=[due_date];
{TrialVersion}=“B”;
echo “sysdate=current date=”. $sysdate ." ExpiryDate=".{TrialVersionExpiry}." TrialVersion= ".{TrialVersion} ;

SC7 HELP.pdf (18.8 KB)