Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking if column has a control
Message
De
18/03/2011 13:00:50
 
 
À
18/03/2011 06:04:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01502528
Message ID:
01504136
Vues:
106
>
>*!* grid.init
>LOCAL loColumn, loControl
>
>FOR EACH loColumn IN this.Columns
>    FOR EACH loControl IN loColumn.Controls
>        IF (UPPER(loControl.BaseClass) == [CHECKBOX]) AND (UPPER(loControl.Name) == [CHECK1])
>            *!* do something here
>        ENDIF
>    ENDFOR
>ENDFOR
>
I believe you only need to check the baseclass. There is a remote possibility that the control name was specified when checkbox was added, so it is possible that the name won't match "Check1" (e.g. the default name would also be different in the case when a subclass of Checbox class was being used)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform