Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the currently Active Object
Message
De
10/09/1999 06:16:33
 
 
À
10/09/1999 05:05:07
Herb Ellerbock
Customized Computer Systems
Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263283
Message ID:
00263285
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform