Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Textbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00061903
Message ID:
00061921
Views:
21
>>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?
>
>I guees you need to reset flag in InteractiveChange and fire code in Valid event:
>***Textbox.Interactivechange
>This.tag="A"
>***Textbox.Valid
>If not empty(This.tag)
> *** fire your code here
>Endif
>This.Tag=""
Hi Ed,

I am not sure I follow...I don't want the textbox to lose focus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform