Ooops... I forget...
Going well Gavin! Trust you are too. Switching Harris Tech fully over to VFP this week! Big job
Go live Weds.
Regards
>Hi Dave,
>
>Long time no speak. How are you?
>
>If I understand your question correctly why don't you put the SetFocus() in the LostFocus of the object you're trying to validate?
>
>Regards,
>Gavin.
>
>>Setfocus() is not allowed to be called from a valid event of a textbox, editbox or spinner (there may be others, I don't know of). Not only that but setfocus() cannot be called if the valid event is anywhere in the call stack! I understand that doing a setocus within the same form or formset should not be allowed, but this is going too far!
>>
>>So, it's often the case in our system that a form is required to validate a users input. For example a form with an optionbuttons. If that form does a setfocus() anywhere then we get the usual error. So how on earth can I call a setfocus() (or do the programmatic equivalent) in a form that is separate to the form on which the valid() event is running??
Previous
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