Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REPLACE command issue
Message
 
À
07/07/2004 06:19:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00921316
Message ID:
00921397
Vues:
14
This is one of the moments I realiaze how helpful ER was!

In addition to the others advice - I [think i] remember that there may be issues with SCAN/ENDSCAN when working multiple tables with REPLACE. You might check to see how the results look with DO WHILE loops (if you're using SCAN).

>Hi all ...
>
>There is a simple section of code in my application, similar to that shown below, which is causing me some headaches. The great majority of the time, this code runs correctly, however, occassionally, it seems as though parts of the REPLACE command don't execute, wheras other parts do.
>
>For example, in the code below, the nCalCount field will be updated, but the lCalVerify field will not be !!
>
>***********************************************************
>
>If llLoop
> Replace ;
> lCalVerify With .T.,;
> nCalCount With Loop.nCalCount + 1,;
> nWorkID With 0 ;
> IN Loop
>Else
> Replace ;
> lCalVerify With .T.,;
> nCalCount With EQUIP.nCalCount + 1,;
> nWorkID With 0 ;
> IN EQUIP
>Endif
>
>***********************************************************
>
>As I said, this error only occurrs periodically, and I cannot recreate it, however, we know that it does occur.
>
>Does anyone know of anything which may cause this type of behaviour in VFP 8.0 ?? We have a client who is using a version of our software developed in VFP 7.0, and they have never reported this problem. This section of the code in the VFP 7.0 version is identical to that in VFP 8.0.
>
>Thanks
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform