Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing a View
Message
From
06/08/2000 16:09:57
 
 
To
06/08/2000 13:36:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00401642
Message ID:
00401681
Views:
19
Hi John,

Thanks for the reply... I like simple but this will require me to duplicate all the code that changes the grid header I think... Also I want to do this "on the fly" for grids that have no record source but might display several different tables or views...

Basicly right now it works great as long as its a table... just wanting to add views to it.

Thanks

>Hi John,
>
>You're gonna love this highly scientific answer: This code "feels" wrong. I think you should try to create all of your tags in the Init of the Grid and/or Form and forget about trying to do it in a method kicked off by a header click. It seems inefficient. This way, on the grid click, you can simply SET ORDER, and all the code to check if the tag exists or not becomes unnecessary.
>
>>I have a view that is in the DE of a form. A grid uses that view as its recordsource. I am trying to index the view and keep getting an error saying that index is allready there. I can do an INDEX ON from the command line on the view and that works fine... This is for a ColumnSort method in the grid. I am passing the referenct to the header to ColumnSort.
Previous
Reply
Map
View

Click here to load this message in the networking platform