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:
00385863
Vues:
9
>>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
>
>Probably generates an error. There's no WITH value. If it's trying to what you think:
REPLACE ALL ICITEM10.HISTORY WITH NOT ICITEM10.HISTORY FOR NOT HISTORY
>* Or
REPLACE ALL ICITEM10.HISTORY WITH <b>.T.</b> FOR NOT HISTORY
will do.

Doh!
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform