Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to control the date validation for the TextBox?
Message
De
22/05/1999 03:02:26
Rajatkanti Bagadthey
Skynet Systems P Ltd
Kolkata, Inde
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00221016
Message ID:
00221707
Vues:
27
if ur looking for date fields bound to tables, this is how i
handle it
1. for the table fields i place the validation for the field &
the validation text and default value
... i must have a valid expression in default value
2. in the textbox baseclass valid
local cs
cs=this.controlsource
if !empty(cs)
if !empty(dbgetprop(cs,"FIELD","RuleExpression"))
if eval(dbgetprop(cs,"FIELD","RuleExpression")) = .f.
this.value=iif(isnull(oldval(this.controlsource)),eval(dbgetprop(cs,"FIELD","DefaultValue")),oldval(this.controlsource))
return .f.
endif
endif
endif
return .t.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform