Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP respond to Multiple process at the same time.
Message
From
12/12/2001 15:08:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Can VFP respond to Multiple process at the same time.
Miscellaneous
Thread ID:
00593483
Message ID:
00593483
Views:
60
In order to fully understand the problem, I have to explain in detail whats happening.
I am using VFP 6 SP3. I have a Sales & Order processing application. There are many
reports within the system and they all suffer from this same problem. Each report has
a form which allows the user to set some criteria for the report. When they are ready
they press the OK button and then I call a prg to process the data files. Each prg contains
code similar to the following...

DO While NOT EOF('Customer')

*!* after every 100 records I issue a DOEVENTS
IF m.nCounter >= 100
DOEVENTS
IF Lastkey() = KEY_ESCAPE
m.lAbort = .T.
EXIT
ENDIF
m.nCounter = 0
ENDIF

*!* calculate some figures here
* bla bla bla

m.nCounter = m.nCounter +1
SKIP +1 IN Customer
ENDDO

While the above prg is running I want my users to able to go to my application's menu
and maybe they can do an accounts enquiry or do some other data entry while they are waiting,
but my application will not respond to any mouse clicks or menu clicks.
Is there a way to get VFP to handle different process at the same time.

I have _VFP.Autoyield set to .T.
My Regards
John Hussey
Next
Reply
Map
View

Click here to load this message in the networking platform