Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing a modal progress bar
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00616707
Message ID:
00616723
Views:
25
>I have a method in a form that is a long process. I would like to show a modal form with a progress bar to show the user how the process is going.
>
>ex:
oProg = newobject("progbar")
>oProg.minVal = 0
>oProg.maxVal = reccount()
>oProg.show(1)
>scan
>  oProg.curVal = recno()
>
>  ... do stuff ...
>
>endscan
>
>The problem is the modal part. VFP sits at the .show(1) and waits for the oProg form to be released.
>
>The only thing I can think of is to pass a reference of the current from and the method name to call to the progbar form and let the progbar call the method.
>
>Is there any other way? Anybody have any ideas?

You can't show a modal progress bar because it will stop the processing of the underlying operation (unless it's part of the form itself). I've got a modeless one that I'll share if you like.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform