>>>Foxpro always displays an empty datetime as " / / : : AM".
>>>Does anyone know of a uncomplicated means of displaying an empty field when its empty?
>>
>>In the Refresh of the TextBox, you could put this:
>>
>>
>>IF EMPTY(this.Value)
>> this.ForeColor = this.BackColor
>>ELSE
>> this.ForeColor = RGB(0,0,0)
>>ENDIF
>>
>>
>>Might cause a bit of a problem if they need to actaully enter values in this field.
>
>
>I would put
IF EMPTY(this.Value)
> this.ForeColor = this.BackColor
>ENDIF
In the LostFocus() event. And
IF NOT EMPTY(this.Value)
> this.ForeColor = RGB(0,0,0)
>ENDIF
in the InteractiveChange (or KeyPress) event.
That should get around the data entry problem.