Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternating lines on a grid
Message
From
07/04/2000 06:10:59
 
 
To
07/04/2000 05:08:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00356606
Message ID:
00356710
Views:
22
Hi Cetin.

>> This works faster with tables whose reccount() <= 65000 (for larger tables a cursor could be used instead):
* Grid.init
select recno() ;
   from (this.recordsource) ;
   order by myOrder ;
   into array ;
   thisform.aOrder  && A form or grid custom array property
this.setall("DynamicBackColor",;
   "iif(ascan(thisform.aOrder,"+;
   "recno())%2=0,rgb(0,255,0),rgb(255,255,0))","Column")
<<

Very slick! I really like that. Thanks for sharing;-)

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform