Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin Process ... End Process ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00005319
Message ID:
00005349
Vues:
24
> I don't want lock file or record, I just want that foxpro did my 2 lines of code without interupt by a other line of code(MULTI-TASK) to prevent error.
>I will try with a exemple:
>
>USER have to make a seek in table USER1 and after make a GATHER MEMVAR
>
>BUT
>
>TIMER1 have to make a seek in table USER1 to in same time
>
>GOOD
>---------------------------
>COMPUTER DID
>USER : SEEK IN TABLE USER1
>USER : GATHER MEMVAR
>TIMER1: SEEK IN TABLE USER1
>
>BAD
>----------------------------
>COMPUTER DID
>USER : SEEK IN TABLE USER1
>TIMER1 : SEEK IN TABLE USER1
>USER : GATHER MEMVAR
>
>May be I can resolve the problem if i used the same table open with 2 different alias But I don't know if with 4 or 5 different alias of the same table the performance will be affected ?

Visual FoxPro is NOT a multi-tasking environment. The program itself seldom has more than 2 threads running, even under Win95. From my experience with VFP, an event (such as the Timer event) cannot be triggered while a procedure is executing. So when one procedure is processing code, an event cannot do a SEEK and disrupt the record pointer. Anyway, FoxPro is not the environment you want to be implementing too much multi-tasking -- Timers are great, but they have their limits.

Hope this helps,
If you still have a problem maybe you could be more specific.
Peter
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform