Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validate Textbox value?
Message
De
15/04/2003 15:06:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Validate Textbox value?
Divers
Thread ID:
00777948
Message ID:
00777948
Vues:
40
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform