Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop page change in a pageframe during a lostfocus??
Message
From
15/08/2000 15:59:09
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00405163
Message ID:
00405176
Views:
23
Jim,

Would it work if I put it in the VALID of the txtName? The only problem I see with that is the INVALID INPUT
message box that shows up.

Pete




>Peter,
>
>LostFocus has a base class behavior fo moving focus. You need to stop that behavior if you are setting focus somewhere. Change your code to this;
>
>
>WITH This
>   IF Empty( .Value )
>      * Relative addressing is more portable as it is name independant
>      .Parent.Parent.activepage=2
>      * Put focus on this same control
>      .setfocus()
>      * Stop the base class behavior
>      NODEFAULT
>   ENDIF
>ENDWITH
>
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform