Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the currently Active Object
Message
From
10/09/1999 06:16:33
 
 
To
10/09/1999 05:05:07
Herb Ellerbock
Customized Computer Systems
Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00263283
Message ID:
00263285
Views:
27
Hi Herb.

>> My problem is that I am unable to determine the active control, given that it may be on a form, a page on a page frame or in a nested container object. <<

The only time that this is a problem is if the activeControl is a cell in a grid. Try something like:
IF TYPE('_Screen.ActiveForm.ActiveControl.Name') = 'C'
   IF UPPER(_Screen.ActiveForm.ActiveControl.BaseClass) = 'GRID'
   *** Drill down into the grid for the active cell
   ELSE
      _Screen.ActiveForm.ActiveControl.SetFocus()
   ENDIF
ENDIF
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform