Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate Textbox value?
Message
From
15/04/2003 15:06:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Validate Textbox value?
Miscellaneous
Thread ID:
00777948
Message ID:
00777948
Views:
39
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
Amanda Morton
System Analyst
Harrisburg Project
Next
Reply
Map
View

Click here to load this message in the networking platform