Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace - command - Is somthing wrong ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00779543
Message ID:
00779547
Vues:
12
Hi Btian,

The REPLACE FOR command always poistions record pointer on EOF() because default scope in this case is ALL not NEXT 1.

>I have been using some code for a number of years and just reciently it appears to no longer work as before
>
>The line of code was
>
>OK City and Suburb are fields and the table in a scan - enscan
>
>The offending code is:
>
>Replace city with "" for suburb = city
>
>What is now happening is it changes the first record the drops down to the last record ( eof())
>
>Ok I can stop this by either
>
>Replace city With "" while suburb = city
>
>or
>
>Replace next1 city with "" for suburb = city
>
>but as the default is next1 record it should not drop to eof()
>
>The only change to anything is a upgrade processor to AMD 1.8 I wonder if its somthing in the background.
>
>I have used this command on the command line and it does the same thing so I dont think is in the code as such.
>
>Any thoughts
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform