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:
00385857
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform