Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor Using A Method Instead of IIF?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00148063
Message ID:
00148211
Views:
16
Christof,

The speed of arrayy access vs method call isn't an issue at all in this app. The grid only displays a p-view that is always 5 records, and the grid is sized so the 5 rows exactly fit, no scrollbars.

>In this case it should be faster to use an array with 5 rows and then use the following expression:
>
>IIF( BETWEEN(RECNO(),1,5), Thisform.aColors[RECNO()], RGB(192,192,192) )
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