Is your AutoYield setting False? If so, try setting it to True so that VFP can read windows events during the loop, including the attempt to refresh the label.
(Strange, I was sure DoEvents would do it as well, but I can't get it to work... I was so sure it worked that I am wondering if the functionality changed between VFP6 and VFP7.... but try AutoYield, which worked for me with VFP7)
>Hi everybody,
>
>I'm running a scan loop and want to show the name of the job running. Here is my code inside scan:
>
>with thisform.lblJobType
> .caption = m.lcOriginalCaption + ;
> iif(thisform.cAction = "Archive"," Archiving "," UnArchiving ") + ;
> alltrim(JobsFrom.JobDescrip)
> .visible = .f.
> .visible = .t.
> endwith
>
>However, it doesn't work.
>
>Do you know, why?
>
>Thanks in advance.
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell