Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to Setfocus from within Valids...
Message
From
26/07/1999 06:40:40
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00245868
Message ID:
00245986
Views:
30
>Harry,
>
>You can call TheOtherControl.SetFocus() from this.LostFocus()
>
nope, can't wrap me 'ead round this one!

The field in question is for an account reference. If the field is empty, it pops up a list of available references. If the user can't find the one he needs, he can enter a new reference. The valid clause then checks the address file, spots the fact that the reference does not already exist and then and there offers the user the opportunity to add the new address. If the user says 'Yes' then the address form is run and a new record added with the new account ref.

It is from this point on that the keypress (PGDN) may be required to shift focus between the address form controls and the command buttons. And because the form has been run from within the original valid clause, I get the error. How else can I provide that functionality without using the original valid? The only thing I can think of is shifting it away from field level validation to record level but a) that would be less useful and b) it would still be a 'valid'.

Confused!

Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform