Information générale
Catégorie:
Codage, syntaxe et commandes
I have a textbox control for entering dates. There is code that I need to fire when the date changes, whether it be by hitting "-", "+" or even typing in a new date. It makes the most sense to me to put this code in the interactivechange event, however, I only want this code to fire when a complete date has been entered or a date has been blanked out, not everytime I press a key. I tried putting code that checks to see if the value is a valid date which seems to work alright, but then I also want this code to fire if I blank out the date. So I need an If statement that only fires if between(this.value,01/01/1901,01/01/2049) or empty(this.value). But, if I have a blank Date textbox and I press any number I still think empty(this.value) evaluates to .t.
Any ideas?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement