Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search for a specific column i a grid.
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01010700
Message ID:
01010832
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform