>I have a splash form in an application, that updates a progress bar, which doesn't work when called in the main.prg. The program code is this:
>
>LOCAL loSplash
>DO FORM splash NAME loSplash LINKED
>loSplash.SHOW()
>
>And the code in the Splash form's timer event is :
>
>loProgress = THISFORM.oleProgress
>IF loProgress.VALUE + 10 > loProgress.MAX
> loProgress.VALUE = 0
>ENDIF
>loProgress.VALUE = loProgress.VALUE + 10
>
>The progress bar part works if I do "DO FORM splash NAME loSplash LINKED" in the command window though.
Hi Michael
I assume that, in the program you are doing other things while the form is up and VFP is simply "caching" the changes to the progress bar. You need to force the form to re-draw itself in order to see the progress.
Either add an explicit "ThisForm.Draw()" to the timer event or include a DoEvents command.
----
Regards
Andy Kramek