Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for a specific column i a grid.
Message
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:
01011530
Vues:
14
Yes thankyou.
This way looks like the same as I do with nodes in trees. I did´nt know that I could use it here too.
There are not so much of this in the VFP manual.


>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform