>>Hi everybody,
>>
>>I have a container based class called cntPhone, which consists of several textboxes. The first textbox has R format and (999) InputMask.
>>
>>I found a weird behavior. If I go to this textbox, then type something, then delete, what I typed and then try to Save my data, I get a warning, that this field could not be empty. However, if I do not enter this textbox, I do not have this warning. Why it behaves this way?
>>
>>Thanks in advance.
>
>Probably you're using buffering and it's a new record. empty() # isnull().
>Or your save routine is checking GetFldState().
>Doesn't it happen if you don't have R and inptmask? I've never used R.
>Cetin
Yes, the Save routine is using GetFldState(). I'm thinking, that GetFldState would report a change even if you type something, then reverted back to the original state. So, I'm now thinking that R has nothing to do with it.
I'm going to test different scenarios in a couple of minutes...
Thanks for IsNull tip. It might be the case here as well.
If it's not broken, fix it until it is.
My Blog