Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I know ...???
Message
De
30/08/2001 17:50:19
 
 
À
30/08/2001 16:24:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00551080
Message ID:
00551140
Vues:
22
>Hi to all.
>
>Maybe this is a newbie question but I would like to know how can I identify wich textbox is selected in a grid control.
>
>Thanks in advanced.

Think this should work. Needs a bit of extra code if DynamicCurrentControls are involved.

_ActiveControl = TheGrid && thisform.PageFrame1.Pages(1).OrderGrid

_ActiveColumn = _ActiveControl.ActiveColumn

if( !empty(_ActiveColumn) )
for i = 1 to _ActiveControl.ColumnCount
x = _ActiveControl.Columns[i]
if( x.ColumnOrder == _ActiveColumn )
exit
endif
endfor
for i = 1 to x.ControlCount
if ( x.Controls[i].Name == x.CurrentControl )
_ActiveControl = x.Controls[i]
exit
endif
endfor
endif

return _ActiveControl
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform