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.

1 Like

Try this

2 Likes

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

1 Like

thanks i just saw your reply i did small changes and it is working now

yes i did that also, thanks for your reply

thanks for your reply
i got your point, but it is working now just with few modification on where to put the label since it was not displaying only

Be good if you could show your blocks solution, which may help others.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.