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:
00112033
Vues:
29
Mark,

This is a little strange, but I'll try to explain it. The scope of the REPLACE command applies to the selected workarea. The default scope is NEXT 1 (the current record). If you are at EOF in the current workarea there is no NEXT 1, so the REPLACE doesn't happen. It doesn't matter where the record pointer is in the workarea where you're trying to do the replace.

VFP adds the IN clause to REPLACE so you can REPLACE IN myarea. In 2.x I don't think there's any way around selecting the area where you want to do the replace.


>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform