Frozen iteration count label on window lost focus

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

Frozen iteration count label on window lost focus

Post by bluebird »

Dear mentors

I have a two label counter on one of my applications that shows the current iteration alongside of the label showing
the final completion count.

ex, LABLE_CURRENT <21> of LABLE_FINAL <55>

If I go outside of the containing window the update label value ... <21> freezes, but the iterations still progress invisibly

Is there a way to use ON FOCUS (or anything else) so that when I click back on the window, the counter wakes up?

Thanks
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

Re: Frozen iteration count label on window lost focus

Post by bluebird »

Any examples Mr Mol?
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Frozen iteration count label on window lost focus

Post by mol »

you should insert line in your iteration code

Code: Select all

do events
f.e.

Code: Select all

for i:=1 to 100
  win2.form21.value := strzero(i,3)
  do events
next i
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

Re: Frozen iteration count label on window lost focus

Post by bluebird »

Thanks Marek

It works,.... but you already knew that :)

The HMG Reference site does not tell you much so I don't know HOW it works , just that it does
Post Reply