Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox in a grid with date field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01321108
Message ID:
01321264
Vues:
16
What is your code in KeyPress event? Do you have NODEFAULT there?

>Thanks for the reply. I have done something similar to that. Nothing I do from a troubleshooting perspective seems to indicate that the code is somehow being called twice. I've ruled that out for the moment and I'm looking for other causes.
>
>>In the KeyPress event add wait window timeout 1 Program(program(-1)-1) (something like this).
>>
>>This would tell you when and how the key is duplicated...
>>
>>>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
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform