Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternating Colors in Grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01098730
Message ID:
01098993
Views:
17
Jerry,

You are better off using c(1) field in the cursor than creating a really long string that the grid has to keep searching. You can use one REPLACE to flush them all to '0' and use a loop to set the even rows to '1'

> Thanks. I tried doing a SCAN, but differently. After setting the index, I scanned every other RECNO into a property, separating them by commas, and told it to color the records whose comma+RECNO+comma were contained in the property. That worked fine, until I realized that scanning a large table would probably take too long. I'm going to test it later, anyhow.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform