Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A progress function as part of the key
Message
De
28/01/2009 10:36:55
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
22/01/2009 18:33:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01376430
Message ID:
01377719
Vues:
32
>Hi All:
>
>As part of my Clipper conversion to VFP project:
>
>I want to inform the user of progress while indexing, like so:
>
>
>public llFirstTime
>llFirstTime = .t.
>use test
>index on field_1 + ind_di() to Index1
>return
>
>FUNCTION IND_DI
>IF llFirstTime
>	llFirstTime= .F.
>ELSE
>	@12,20 SAY STR(RECNO() / RECCOUNT() * 100, 4)
>ENDIF
>
>RETURN ''
>
>
>The trouble is that when I execute
>
>
>set index to index1
>
>
>it tries to execute the function, which I do not want. (The function may in a separate procedure, and may not be available).
>
>Is there a better way?
>
>Thanks,
>
>Yossi

Not really. How often does the user need to reindex? Don't put a lot of energy into this. Define a new window and set notify to send output into that window.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform