Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate Textbox value?
Message
From
15/04/2003 15:13:11
 
 
To
15/04/2003 15:06:03
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00777948
Message ID:
00777954
Views:
14
I would probably put the code in the valids, but add a function to check the dates to the form itself rather than having the individual components looking directly at each other. They can both call the same function that way and not have to know anything about each other. For example, they would both simply have 1 line of code each - "Return Thisform.CheckDates()"

Alan

>Ok, it is stupid question of the week time. I have (2) Begin date and End date text boxes. The (B)Begin date text box value cannot be greater than the (A) End Date text box. (How can you start a new date range when the other hasn't completed yet?) Here is what I need to do, when the user types in a value into the (B) Begin Date, I want to check that the value is greater than that view value used to populate (A) End Date. I have the correct code to check, but my problem is what text box method to put it in. I tried InteractiveChange, and LostFocus, but they only work sporadically. What am I doing wrong? So, where do I stick it? <vbg>
>
>if this.Value > v_calinfo.dregend
> messagebox('Summer begin date must be greater than the regular term end date.', 48, 'Summer begin date error')
> this.Value = v_calinfo.dregend + 1
>endif
>

>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform