>>>
>>>In other words the code is only failing when run from the subclassed textbox rather than a normal one with the same code in it.
>>>
>>>Does this give us a further clue?
>>>
>>>Harry
>>
>>So, the code is in the class. What do you put in the valid event in the instance on the form? Make sure there is absolutely nothing in the instance, not even white space. If that doesn't work, put a DODEFAULT() in the instance on the form.
>
>Actually, a DODEFAULT would cause it to always pass. You would need to
>
>IF !DODEFAULT()
>
> RETURN .F.
>ENDIF
My understanding of the problem was that the code wasn't running. But you are correct, as is George. I was just interested in making the code run. After that I would worry about the results.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer