Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange replace behaviour.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00694343
Message ID:
00694449
Vues:
13
>jeez...worked for years ith replace, and first time i encouters this. but what's in a name : for me it stays a bug, wether it's known or not.
>
>
>thanks.

Vincent,

It is NOT a bug. REPLACE is a scoped command and its default scope is NEXT 1 record IN THE CURRENT WORK AREA. If there is no next 1 record in the current work area then there is nothing for replace to do. You can deal with this by;

1) Selecting the owrk area you are replaceing in before you replace
2) Use the IN clause to point the replace to a different work area REPLACE ... IN OtherArea
3) Use INSERT or UPDATE commands instead of replace
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform