Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What does this code do?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00385850
Message ID:
00385857
Vues:
11
>I'm trying to port over mods to a new version and I ran across this program:
>
>CLEAR
>CLOSE ALL
>SELECT HISTORY ;
>FROM M:\PRO\ICDATA\ICITEM10.DBF exclusive
>REPLACE ALL ICITEM10.HISTORY=(.T.) FOR HISTORY=(.F.)
>
>I'm guessing it's supposed to change the field "history" to true wherever it's false, but it's written so strangely. It looks like it's putting the field "history" into a query first, and then not using it. Maybe I'm missing something because I'm so foggy today, but this just doesn't look right to me...
>
>Thanks,
>
>Michelle

The REPLACE command will not work because you have to use WITH instead of equal signs. The only useful line of code is the first line. :)

The exclusive at the end of the SELECT is useless and not a valid SQL option.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform