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:
01011530
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform