Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing headers
Message
From
03/12/1998 10:33:21
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00163637
Message ID:
00163641
Views:
20
>I saw a trick where you can sort a column by clicking on the header. I'd like to use this, but it's too time consuming to add the code to every header. So I thought I'd make a header class. But VFP doesn't like it when I try to do that. Is there a way to subclass the header class?
>
>Another issue is putting indexes on every field in every table so it can sort. Is this a good idea? I'm wondering if that would slow things down significantly.
>
>Thanks,
>
>-Michelle

Header class can be created programmatically using DEFINE CLASS ....
Indexing every field in table may slow down things, but on what point depends on specific situation. Basically, users should be entitled to sort on fields which are really important from business standpoint. Also, it's arguable to put all tables and all records of them in grids.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform