Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with _Screen.ActiveForm.ActiveControl
Message
De
15/02/2001 16:58:06
 
 
À
15/02/2001 16:54:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00476476
Message ID:
00476499
Vues:
25
>Hi Fred,
>
>loActiveControl = This.GetActiveControlRef(_Screen.ActiveForm.ActiveControl)
>This line is part of a save routine(write buffer) which is trying to to get the active control so I could check to determine if the user is currently in a grid. IF the user is currently in a grid then I would loop through the columns in the grid to find the active column then the active control with in that column. *!* Also This code is also in the VFP FFC _app.vcx base class (_datasession, dataflush method)
>
>Thank you for responding.
>
>Andy

Since you're using it in an object of some sort, is the "this" you're refereing to on a form? If it is, try doing "thisform.ActiveControl". You may also want to check to make sure that it is an object before attempting to use it.

IF TYPE("_SCREEN.ActiveForm.ActiveControl")="O" ...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform