Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A progress function as part of the key
Message
De
22/01/2009 18:33:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
A progress function as part of the key
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01376430
Message ID:
01376430
Vues:
76
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform