After clicking Date Picker date not show on label

when i choose a birthday that is {1 year or more} the label wouldnt show the age however if check the Age variable it seems that it got the age right

and if i choose age <0 / = 0 it just work
previously everything was working i dont know what is the problem
so if any body has an idea about what could be the problem i will be grateful for your help.

I have some doubts about your algorithm.
Supposing birthdate year 29/july/1958 current date 18/dec/2025.
Patientage initialized to 2025-1958 = 67
First big if:
Current month (12) isn't < Birth month (7) then goto first elseif without printing nothing
Current month (12) isn't = Birth month (7) then exits the first global if without printing nothing
Second big if:
Patientage istn't negative (i.e. 67) nor = 0 the exits without printing nothing.

Would you mind to check if my interpretation is correct ?

What do you mean: previously everything was working i dont know what is the problem
Have you changed something in your code ? Can you get back to the previous version that was working ?
All the best.

Try this

1 Like

There is also the question of where you call that procedure from.