>>>How do I enforce a valid date on a textbox. The textbox is defined as char at the moment and in the init= thisform.textbox1.value=DATE() and
>>>thisform.textbox1.Format='D' . However, I can enter bogus dates.
>>
>>If Value is date type then you cannot enter bogus values. Make sure you don't override value back to character. To find it easier remove 'D' format.
>
>Ed, how do I make the VFP message appear on a form as a popup? This is for when the user enters a bogus date in the field. I am trying to go this route:
>
>SET MESSAGE TO [cMessageText]-or-SET MESSAGE TO [nRow [LEFT | CENTER
> | RIGHT]]-or-SET MESSAGE WINDOW [WindowName]
>
>but no message appears.
Just use a messagebox.
BTW, I'm wondering why did you ignore my reply?
If it's not broken, fix it until it is.
My Blog