Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validate textbox with combo boxes.
Message
 
À
31/03/2009 06:29:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01392305
Message ID:
01392311
Vues:
40
>Dear Experts
>
>thisform.combo1.value="Mar"
>thisform.combo3.value="2009"
>Thisform.text1.value=
>
>How should validate text1 to accept dates between 01-03-2009 to 31-03-2009.
>Text1 must accept values according to combo1 and combo3.
>
>Please help
**** Valid Event of the TextBox
IF TYPE([this.Value]) == [D]
   RETURN YEAR(this.Value)  == thisform.Combo3.Value AND;
          MONTH(this.Value) == thisform.Combo1.Value
ENDIF
Something like that (not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform