Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP respond to Multiple process at the same time.
Message
De
12/12/2001 15:08:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Can VFP respond to Multiple process at the same time.
Divers
Thread ID:
00593483
Message ID:
00593483
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform