Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What gives???
Message
From
22/01/1997 16:58:24
Bill Gravell
Indoor Purification System
Menifee, California, United States
 
 
To
22/01/1997 14:16:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00018007
Message ID:
00018128
Views:
40
>>Here is the situation: System to track accidents. During the data entry process, there is a form to enter all the specific data of the accident (accmgt). That form is created and during the activate, a 2nd form is called to search for the employee (search). During the search phase, the employee SSN is stored, and all the pertinent information about the employee is displayed on the first form (accmgt). In the accident date field valid method, I put a duplication check routine to check to see if, based on the ssn and date of accident, the accident had already been entered into the system.
>>
>>Problem: As the system creates accmgt and calls search in the activate method, it evaluates the valid in the accident date field, even though the textbox had not yet recieved focus. I even moved the code to the lostfocus method, but it still is triggered. I thought that the valid only triggered during the actual entry and attempted exit from the text box, and the same for the lostfocus.
>>
>>What am I missing? anybody help???
>
>Where is the second (the employee info) screen being called from? From the sounds of it, it's being called from the accident date field(?) If this is the case, then it makes sense that the lostfocus is firing when you leave the field. That field has just lost the focus of the cursor. If data has been entered in the date field, then the valid WILL be fired on leaving the field.

It is being called in the activate method of the very top level of the accmgt form. It doesn't appear, while I am in debug, that the cursor is getting positioned in that field yet.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform