Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress bar for Indexes
Message
From
31/01/1997 22:19:39
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017692
Message ID:
00019020
Views:
66
>>
>> >Is there a way to show a progress
>> percentage bar for the reindex function? I am using VFP 3.0, will be
>> upgrading to 5.0 soon.
>>
>> Yes, but you won't like the solution.
>>
>> You need to do an INDEX ON...FOR UDF(). In the UDF you need to determine if
>> the progress meter needs to be updated and then do that if needed. THe UDF
>> should return a "" (zero length string) because the return value will be
>> returned as part of the key. The UDF() is also part of the key, so it will
>> be run everytime you access the index for a SEEK or whatever. This will
>> slow down your SEEKs. Also, the index process itself will be slower because
>> of the access to the UDF and the display of the progress bar. One other
>> thing, you can FOPEN() the CDX after you index and take out the reference
>> to the UDF...this will stop the UDF from being called all the time.
>>
>> Craig
>Hi Craig,
>could you please, give me closer informations how to take out these ref.
>I tried, but all got was damaged cdx file :-( that I had to delete and
>recreate. When I opened cdx file with modi fille ... I was able to see
>my FOR condition, but not phrase FOR.
>TIA
>Dezider
>--


I haven't done this myself, but I know that people have done it. What exactly did you do to replace the FOR condition?

Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform