It seems that I wasn't clear in my question.
What I want is the code to produce the error message like in the picture below
error message
error message
Last edited by blumski on May 9th, 2018, 5:13 pm, edited 1 time in total.
Re: error message
Below is a sample for your perusal
//Parent's age should be 12 years more than child's age.
if Relationship(curocc()) = 4 and Age(1) < Age(curocc()) + MinAgeDiffBtwnChildAndParent then
errmsg("%s's age should be 12 years more than %s's age",strip(Name(1)),strip(Name(curocc())))
select("Correct parent's age",Age(1),"Correct child's age",Age(curocc()));
Re: error message
In addition to what sah said take a look at the errmsg function. The use of errmsg and select together will give you the behavior you want.
Re: error message
Thanks so much sah. It works.