Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress Bar - Form and .Prg File 1

Status
Not open for further replies.

networkthis

Programmer
Jul 11, 2011
29
US
I'm using the OLE control Active X progress bar with VFP 9. I can get it to work just fine in most case during large queries, etc...

This time however I would like to show it on my form while a .prg file is being opened - until it is closed. In my form right now I am simply saying Do myfile. Is there a way to display the progress bar during this time?
 
You may have to instantiate the form using a variable visible to the .prg, then reference the form and progress bar from the .prg.
Something like:

PUBLIC oMyForm
DO MyForm NAME oMyForm

Then from the .prg:

oMyForm.ProgressBar.Visisble = .T.
oMyForm.ProgressBar.Value = ...

And so on.




-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Thanks... Exactly what I needed. I had to create the object of the form using( Do Form myForm ) in the prg before trying to refence the progress bar on the form itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top