Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress Bar
Message
 
 
À
22/05/2002 06:50:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00659644
Message ID:
00659882
Vues:
26
Hi!

This is not possible to do in VFP. Indexing process does not allow any progress bars by recno(). In addition, indexing process is not linear. This means that VFP starts indexing by scanning all records and creating the index keys, then sort indexes, then create/update index file and so on - a few processes. The progress bar by recno() here will be irrelevant and progress bar will display progress incorrectly.

If you like experiment, you can try to use filter for index that is a call to function. In the function using recno() you can display a progress. Return always .T. in that funtion. Anyway, I do not recommend to use this approach, because function should be available all the time when you open table for editing (and always return .T.). In addition, filtered indexes are not used in Rushmore optimisation, so this kind of indexes will display nice progress bar, but also these indexes will be useless.


>Rodolfo,
>
>In order to help the non spanish speaking fellows to understand your message, please let me provide a translation of it. Hope you don't mind.
>
>Fernando
>
>
>Hi All,
>
>I'm creating a form where I want to generate indexes in the tables of the system, I could find a progress Bar, but I can't achieve what I want.
>
>That progress bar executes having as a parameter the Recno(), in my case don't know any function or command that I could use with the INDEX command.
>
>The idea is:
>
>use orders excl
>pack
>index on num_invoice tag facturas
>Show Progress Bar while progressing with the index
>index on cod_cliente tag clientes
>Show Progress Bar while progressing with the index
>
>I don't know if any of you have some class that allows me to do what I want.
>
>I thank you in advance for the help.
>
>Regards,
>
>Rodolfo
>
>
>
>>Hola a Todos ,
>
>>Estoy creando un formulario donde quiero generar indices a las bases de datos del sistema, he logrado conseguir un Progress Bar pero no logro
>conseguir lo que quiero
>
>>Esta barra de progreso se ejecuta teniendo como parametro el Recno()
>en mi caso no conozco alguna funcion o comando que pueda usarlo con el
>comando Index .
>
>>La idea es :
>
>>use orders excl
>>pack
>>index on num_invoice tag facturas
>>Mostrar Progress Bar con el Avance
>>index on cod_cliente tag clientes
>>Mostrar Progress Bar con el Avance
>
>>No se si tu tienes alguna clase que permita realizar esto .
>
>>De antemano te agradezco por tu ayuda .
>
>>Saludos
>
>
>>Rodolfo
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform