Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress form not refreshing in runtime
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Progress form not refreshing in runtime
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01092609
Message ID:
01092609
Views:
69
Hi all,

I have a form that shows progress of a scan statement.
_vfp.autoyield = .f.
oform = newobject('cprogress','utilities.vcx',iif(_vfp.startmode>0,_vfp.servername,""))
m.oform.show
m.oform.lockscreen = .f.
m.oform.setminmax(0,reccount('bilfile'))
select bilfile
scan 
 m.lncount = m.lncount + 1
 m.oform.setprogressvalue(m.lncount)
 m.oform.visible = .t.
 m.oform.refresh()
 doevents
 &&process ...
endscan
_vfp.autoyield = .t.
It all works fine in dev mode, but I get blank screen at runtime.

What is going on?
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Next
Reply
Map
View

Click here to load this message in the networking platform