Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not picking up correct shift #
Message
De
10/04/2008 12:31:32
 
 
À
09/04/2008 18:14:21
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01309538
Message ID:
01309743
Vues:
6
>Take a closer look at
>
>
>REPLACE Production.Date ;
>         WITH LEFT(Production.Date,6) + lcCurrentYear + lcDashShift ;
>         FOR SUBSTR(Production.Date,7,1)="-"
>
>
>This will replace *every* affected record, not just the one selected inside your scan.

And also puts you at EOF() so the SCAN executes only once. You might need to capture RECNO() before the REPLACE FOR and then GOTO record before executing the ENDSCAN
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform