Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop page change in a pageframe during a lostfocus??
Message
 
To
15/08/2000 15:34:49
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00405163
Message ID:
00405172
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform