Hi the list !

Any idea why that code produce NaN ?
I'm not sure about the OL version since I tried that snipset online with
http://www.openlaszlo.org/lps/laszlo-explorer/index.jsp?navset=nav10.xml&bookmark=Introduction

When I try my full code with 4.0.2 I got this error :
WARNING: pet-create-1.lzx:329: reference to undefined property 'getFullYear' ERROR: Compiler.substitute:-1: undefined object does not have a property 'make'

Are there known issue with JavaScript Date Object ?

--------------------------------------
<canvas width="200" >
<simplelayout axis="y" spacing="5"/>
<text id="pouette"/>
<button text="OK">
<handler name="onclick">
 var date_birth = new Date("1/1/2006");
 var thisYear = new Date().getFullYear();
 var age = thisYear - date_birth.getFullYear();
 pouette.setText(age);
</handler>
</button>
</canvas>

Reply via email to