Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine what other control a control is losing focus t
Message
From
03/05/1999 23:16:33
 
 
To
03/05/1999 18:24:25
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00214778
Message ID:
00214824
Views:
20
Hi Christopher ---

Yup. There sure is. The following code will pop a WAIT WINDOW telling you where focus is headed (LostFocus code):
** Control.LostFocus 
FOR i = 1 to THIS.Parent.ControlCount
   IF THIS.Parent.Controls(i).TabIndex = THIS.TabIndex + 1
      WAIT WINDOW "Next will be "+THIS.Parent.Controls(i).Name
   ENDIF
ENDFOR
Adapt as you see fit :-)

>Is there any way to tell, at the time the Valid or LostFocus event fires for a control, what other control was clicked on (or tabbed to)?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform