'}' - not all control paths return a value , after i added , #property strict

 

i dont know about coding but after i got this message EX4 file must be compiled using #property strict directive.

i added  #property strict     to ea but i got this error      '}' - not all control paths return a value

pls help me fix it what should i change in ea?

Files:
Capture1.JPG  75 kb
 
We need to see function where you get the error …. Basically it is a function that is not returning anything… 
 
Daniel Cioca #:
We need to see function where you get the error …. Basically it is a function that is not returning anything… 
how do i find it?
Files:
Capture.JPG  44 kb
 
zainone #:
how do i find it?
 
All functions if not declared as 'void' need to return a value.

The best thing is to create a local variable inside the function, assign the value and at the end return the value of the local variable.
Reason: