Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox valid not firing
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344923
Message ID:
01347116
Views:
17
I discovered that
Textbox::setfocus
in the gotFocus event caused the problem I was having. I do not understand that behavior.

>Just to comment on the valid not firing bit, the valid fires when the value changes. So trying changing the value in the getfocus of the control, pressing enter or tabbing out shuld then force the valid to fire.
>
>
>
>
>>When I tab through or press enter after tabing to a textbox, the valid should set the value to the current date if empty. It just quit working. I tried code in the Interactivechange, I put "Textbox::gotfocus" in the gotfocus event, nothing works when the control looses focus. If I click on the box and tab or enter to loose focus, both events fire (IC and valid) and the value appears. I guess I cannot see the forest for the trees. What would cause this to happen. It appears to get focus, even with the format = "KD", it highlights the textbox but tabbing or pressing enter does not fire any events.
>>
>>Thanks, Chuck
Extreme Programming = Plan -> Design -> Code -> Test
Previous
Reply
Map
View

Click here to load this message in the networking platform