Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dos Fox 2.6 strange replace behavior
Message
 
À
26/06/1998 14:46:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00112031
Message ID:
00112106
Vues:
24
>Does anyone know why a REPLACE done in a workarea other than the one selected does not always work? How do you correct the problem without selecting the target workarea first?
Mark,

In versions prior to VFP there is no way to insure your request. The REPLACE command is scoped and its default scope is NEXT 1, in the CURRENTLY SELECTED WORK AREA. If you have no table open or the table that is open is at EOF then your replace will not update the other work area.

In versions prior to VFP I always left the alias off the replace field so it would error on me if I hadn't selected the proper work are first.

VFP added the IN option to the REPLACE command that eliminated the problem.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform