Yes, you are right. I didn't read the message carefully enough. Here are the corrected versions, then.
>Hi Hilmar
>
>All of your versions fail to meet the specification that the function accept 2 parameters, the birthdate and the "current" date ;). I deliberately went for the shortest version that met the speck. BTW, speck with a K is what I call anything that should have been a specification, but wasn't <g>.
function age(b,d)
y=year(d)-year(b)
retu y-iif(gomo(b,y*12)<d,0,1)
function age(b,d)
y=0
do whil b<date()
b=gomo(b,12)
y=y+1
endd
retu y-1
function age(b,d)
retu iif(gomo(b,12)<d,age(gomo(b,12),d)+1,0)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)