Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A progress function as part of the key
Message
From
22/01/2009 18:33:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
A progress function as part of the key
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01376430
Message ID:
01376430
Views:
72
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
Next
Reply
Map
View

Click here to load this message in the networking platform