Hackers Guide to Visual FoxPro 7.0
Set Compatible, Set("Compatible")
A SET command that toggles the behavior of many other commands and functions from their "normal" way to those more like dBASE IV's behavior. This is a dangerous command.| Usage | SET COMPATIBLE ON | DB4 | OFF | FOXPLUS [ PROMPT | NOPROMPT ] lcCompSet = SET("COMPATIBLE") && Returns "ON" or OFF" |
| | The PROMPT dialog that comes up is a bit confused. First, pressing the Help key is the same as the No key. Second, the dialog states that "This can later be reversed with COPY TO TYPE FOXPLUS." This is not exactly true—that command will create a dBASE III, not dBASE IV, memo field. Finally, clicking on No errors the system with "Not a table." |
If you choose to convert the dBASE IV file, a follow-up dialog prompts you to strip the "soft returns" from the memo fields. Soft returns are CHR(141)'s that dBASE added into a file to do word wrap. Select Yes only in those cases where text is stored in this field—always answer No if the memo field contains binary data. In addition, the table must be open exclusive or you get an error message. In case all that isn't enough, the memo file is changed from a DBT to VFP's FPT format, and you can't open the table in dBase IV any more. Yuk. We sure wish they'd give VFP the ability to read dBASE IV files natively (not that we run into a lot of them these days).
| See Also | Set |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.
Категории