Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indices em view remotas
Message
From
15/12/2002 10:39:59
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00732829
Message ID:
00733160
Views:
30
This message has been marked as a message which has helped to the initial question of the thread.
>Sim, eu sei. (isso deveria ser mudado)
>
>Agora o que desejo saber e onde nossos amigos estão criando os indices?
>
>Existem várias possibilidades, gostaria de saber a opnião. No init da visualização? No requery?, no Load do form? Disparando um evento do DBC?

Pode criar no Init() do form ou de objeto que faz o Requery(). Também pode usar o DBC() Event:
PROCEDURE dbc_AfterOpenTable(cTableName)
* faz o indice da vista quando abre
Tenha cuidado com o buffering ja que não pode indexar ão buffering de tabelas. Nesse caso, pode mudar o buffering temporariamente assim:
cursorsetprop("buffering",3)
index on CursorID to myIndex
cursorsetprop("buffering",5)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform