


just want to share to you my first simple desktop i made it while studying the LIVECODE.
i have a question regarding the DATE i was trying to get the age but i can't get it. i'm confuse in using the CONVERT




here is the code i made from my simple desktop app: if i run, it keep displaying the year of birth not the age




global theFName
global theLName
global theYearBirth
global theYearToday
global theage
on mouseup
put field "FName" into theFName
put field "LName" into theLName
put field "BYear" into theYearBirth
put the date into theyeartoday
convert theyeartoday to dateitems
put item 1 of it into theyeartoday
put theyeartoday - theyearbirth into theage
answer Information "Your Name is" &&theFName && theLName &theage
end mouseup