Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty TimeDate Display
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00809003
Message ID:
00809049
Views:
27
>>>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)  && Black
>>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)  && Black
>ENDIF
in the InteractiveChange (or KeyPress) event.

That should get around the data entry problem.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform