Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Abstract reference to buffer field contents?
Message
De
21/12/1999 19:06:30
 
 
À
21/12/1999 19:02:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00306762
Message ID:
00307021
Vues:
28
>Hi Dan,
>
>>How do you get the ActiveControl from a grid?
>
>
>LOCAL loActiveControl, lnColumn, loColumn
>
>WITH This
>     loActiveControl = IIF(TYPE([.oActiveForm.ActiveControl.Name]) = "C", .oActiveForm.ActiveControl, .NULL.)
>
>     IF VARTYPE(loActiveControl) = "O" AND loActiveControl.BaseClass = [Grid]
>        lnColumn = loActiveControl.ActiveColumn
>
>        FOR EACH loColumn IN loActiveControl.Columns
>            WITH loColumn
>                 IF .ColumnOrder <> lnColumn
>                    LOOP
>                 ENDIF
>
>                 RETURN IIF(NOT (.ReadOnly AND .Bound), EVAL( ([.] + .CurrentControl) ), loActiveControl)
>            ENDWITH
>        ENDFOR
>     ELSE
>        RETURN loActiveControl
>     ENDIF
>ENDWITH
>
I see.

The active control shows as a grid and you have to drill down to get the actual control. Are there any other containers that behave this way?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform