General information
Category:
Coding, syntax & commands
Title:
VFP 3.0 Newbie Question: LostFocus and SetFocus Methods
Hi,
I'm working on my very first VFP 3.0 application. In my Add/Edit/Delete Form, I am adding code to the LostFocus event of a date field to make sure the date entered/edited is within a certain range. If the date entered is not valid, a message box pops up informing the user of this. I then want the date data entry field to have the focus. However, the ThisForm.txtDate_of_Accident.Setfocus command does not work. I can substitute any other control name and it works fine.
What am I doing wrong?
Jeff
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only