>I'm trying to input a date on a form and then use it to check what data to process. I've set the input mask to 99/99/9999. Does that tell VFP that the date will be a date? I then check to make sure the date is not blank. I have IF EMPTY(THISFORM.txtMdate) ...
You need to initialize the data source to {}, an empty date value, and set the control's Format propert to "D" if you want it to accept the current setting for SET DATE, "YS" to use the current Windows System Short Date format, or "YL" to use the current WIndows System Long Date format.
>I get an error message at the IF statement about data type mismatch.
>I need help.
>
>TIA