Thanks for the ideas Fabio. I tried testing for null but since this variable is used throughout the app and it is initialized with a value of 0 it is never null.
>
>Yes, but I still needed Sergey's resolution to determine if the user entered 00 or if he/she just stepped through the textbox without entering any value because 00 will convert to 2000 and no value equates to 0 in a numeric textbox and I needed it to return the current year.
>>
>If you use NULL for not input, is more simple trap it:
>
>* on init/refresh/gotfocus
>* you can see the default value
>this.NullDisplay = TRANS(YEAR(DATE()),"@R [ 9999 ]")
>* validation
> YEAR(NVL(CTOD('1/1/'+m.value),DATE()))
>
>
>Only a suggestion.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"