Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What does this code do?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00385850
Message ID:
00385863
Views:
8
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform