Using today() as default of a property causes an error in the generated

extend function Booking(){

dateD := today();

dateR := CalcDate.addDays(today(),2);}

in order to avoid this problem you should assign today() to a var first

extend function Booking(){

var d:= today();

dateD := d;

dateR := CalcDate.addDays(d,2);}

Submitted by Elisa on 21 April 2010 at 19:19

Log in to post comments