Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem in date counting
Message
De
13/05/2007 23:07:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/05/2007 14:39:19
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01225093
Message ID:
01225122
Vues:
15
I would say, postpone the validation until the record is saved, i.e., when the user presses the "Save" button. That gives the user much more flexibility to move between different TextBoxes, in any order.

>Hello All,
>
>I have two date field. The date of date2 must not be
>greater than date1.
>
>In the keypress of date2 I have wrote:
>
>
>
>ldDate3=ctod(" / / ")
>
>ldDate3=(thisform.ldate.value) - thisform.ldDate2.value)
>
>if thisform.ldDate.value>ldDate3
>
>messagebox("Collection Date Exceeds 6 months",0+64,"Hello!")
>
>endif
>
>
>
>But I am not getting the desired result. Before completely fiiling
>the date2 field the message box is appreaing.The messagebox
>appearing just after entering the month.And it is going to the next
>field which I want to stop.
>
>Please help me.
>
>Chandan
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform