Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate textbox with combo boxes.
Message
 
To
31/03/2009 06:29:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01392305
Message ID:
01392311
Views:
41
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform