Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty TimeDate Display
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00809003
Message ID:
00809048
Vues:
35
>>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.
Pete.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform