Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for a specific column i a grid.
Message
 
 
À
04/05/2005 06:38:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01010700
Message ID:
01010832
Vues:
18
PMFJI, here is another way to do the same thing. (I like proving there are usually 3 or more ways to do something in VFP, this one makes 2).
lcColSearch = "colCustomers"
for each loColumn in THIS.Columns  && assuming THIS refers to the grid
    if loColumn.Name = lcColSearch
       * do stuff here
    endif
endfor

>lcColSearch = "colCustomers"
>For I = 1 to .grid.columncount
>  If .grid.Columns( I).Name = lcColSearch
>      Wait window "Found column " + .grid.Columns( I).Name
>  Endif
>EndFor
>
>
>Does this help?
>
>Terry
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform