Thank you Dragancesu. Actually variable pdatex1 stores string values of date functions:dragancesu wrote: ↑Fri Jun 05, 2020 9:16 am The program cannot display the window because some variable has no good value
maybe OK CCTXT2: = ALLTRIM (NAM) + "BORN:" + PDATEX1
if NAM is string and PDATEX1 is a date field then ... NAM + DTOC(pdatex1), all variables must be string
pdate11=ltrim(str(day(b_date)))
pdate22=cmonth(b_date)
pdate33=ltrim(str(year(b_date)))
pdate44=cdow(b_date)
PDATEX1:=pdate44+", "+pdate11+" "+pdate22+" "+pdate33
Thank you