Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox in a grid with date field
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Textbox in a grid with date field
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01321108
Message ID:
01321108
Views:
78
My textbox class will increment and decrement a date when the user presses the + or - keys. Works fine, but recently I noticed that if the textbox is used in a column of a grid, the increment is by two and not by one. So when it's empty, the first + or - should set it to the current date, then the next + or - will increment or decrement the date by one. Instead, if the field is empty, pressing + will result in tomorrow's date being entered. Pressing it again will result in a date two days from the currently displayed date. Similar behavior is witnessed using the - key, except the date is decremented. I have used SET COVERAGE to determine that the code is not somehow executing twice and that the code I think is executing is actually executing. The same control works fine when not in a grid. Anyone have any thoughts as to what might cause this?

Thanks,

Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Next
Reply
Map
View

Click here to load this message in the networking platform