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

Click here to load this message in the networking platform