Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Create an other Thread in the VFP?
Message
From
29/04/2002 10:18:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/04/2002 23:50:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640247
Message ID:
00650367
Views:
24
>Thanks,Hilmar
>
>DoEvents,may be I can use it!!!

I tried this, and it works (the user can click on a button while your program runs). However, it makes the program quite slow. I use VFP 6, and Vlad G. says the speed problem has been solved in VFP 7.

A workaround for VFP 6 might be to issue DoEvents with less frequency. Something like this:
select ... into cursor RecordsToProcess
scan
  if recno() % 100 = 0 && only once every 100 records
    DoEvents
  endif
endscan
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform