IF CALCDATE(<+18Y>,Birthdate) > TODAY THEN Child := TRUE ELSE Child := FALSE;But, I want to use field from another table as a variable:
SRSetup.RESET; IF SRSetup.FINDSET THEN BEGIN ChildStr := '<+' + SRSetup.ChildAge + 'Y>'; //MESSAGE('Age: %1',ChildStr); END; IF CALCDATE(ChildStr,Birthdate) > TODAY THEN Child := TRUE ELSE Child := FALSE;NAV complains Integer + String error.
Answers