Contents of README.TXT in the Main FoxPro DirectoryID: Q108177 The information in this article applies to:
SUMMARYBelow is the complete FoxPro for MS-DOS README.TXT file found in the main FoxPro directory (usually FOXPRO25).
MORE INFORMATION
*************************************************************************
Information in the FoxPro online Help is more current than information in
the printed documentation. This README provides information not contained
in the FoxPro online help or documentation, and provides corrections to
both.
**************************************************************************
CONTENTSPart Description ---- ----------- 1 Installation 2 WAIT...WINDOW Enhancements 3 New Commands and Functions 4 New Transporter and Screen Directives 5 International and Cross-Platform Recommendations
Part 1: InstallationThere are three types of installation for FoxPro for MS-DOS: Normal Installation, Administrative Installation and Workstation Installation. Instructions for Normal Installation are in the FoxPro Installation and Configuration manual. For information about Administrative and Workstation Installation, see INSTALL.TXT on FoxPro for MS-DOS Disk 1. Part 2: WAIT WINDOW EnhancementsWAIT WINDOW now supports multiple line messages. Use a carriage return (CHR(13)) to move portions of your message to additional lines. The message window is automatically expanded to accommodate additional lines. For example, this command creates a message window that contains two lines: WAIT WINDOW "This is the 1st line" + CHR(13) + ; The width of the message window is adjusted to fit the longest line in the
message. All lines in the message are left justified in the message window.
Line feeds (CHR(10)) following CHR(13) are ignored.
Part 3: New Commands and FunctionsSeveral new commands and functions are added to FoxPro 2.5b. For additional information about these commands and functions, see the "International and Cross Platform Recommendations" section below and the corresponding topics in Help.
New CommandsSET NOCPTRANS SET COLLATE
New FunctionsCPCURRENT( ) CPDBF( ) CPCONVERT( ) IDXCOLLATE( ) Part 4: New Transporter and Screen DirectivesSeveral new Transporter and screen directives have been added. The #DOSOBJ, #MACOBJ, #UNIXOBJ and #WINOBJ Transporter directives allow you to transport objects created in the Screen Builder and Report Writer to specific FoxPro platforms. For additional information about these Transporter directives, see the Transporting Files topic in Help. #TRAN SNIPPET ONLY, a new screen directive, is available in FoxPro 2.5b. This screen directive affects how screen objects are transported, and is not discussed in Help. #TRAN SNIPPET ONLY is designed to limit the Transporter's changes to just screen snippets, and is placed in a screen's Setup snippet. When screen objects are transported to a different FoxPro platform, only the screen snippets for updated screen objects are transported if #TRAN SNIPPET ONLY is included. All other screen object attributes are not transported to the different platform. Note that #TRAN SNIPPET ONLY only affects updated screen objects; it does not affect new or unchanged screen objects or screen objects being transported for the first time. Part 5: International and Cross Platform Recommendations
*******************************************************
* Be sure to read this section completely before you *
*******************************************************
Overview of topics 1 FoxPro Collation Sequences 2 Case-Insensitive Collation Sequences 3 Case-Sensitive Collation Sequences 4 How do the SEEK and SKIP commands work? 5 Alternatives to SEEK and SKIP 6 Additional Recommendations 7 New Code Pages 8 CPZERO Program 9 Corrections to the Help File FoxPro 2.5b gives international developers and users powerful new features for handling accented characters across different FoxPro platforms, and provides accurate sorting in many languages. For international FoxPro users, this section describes how code pages and collation sequences affect sorting, seeking and comparisons using the SORT and SEEK commands, and also provides recommendations for taking advantage of these features. U.S. FoxPro users whose applications don't contain accented characters may not need any of the new international 2.5b features. In this case, you can disregard this section of the README and the International/X-Platform topic in Help. FoxPro 2.5b is 100% percent compatible with FoxPro 2.5.
1 FoxPro Collation SequencesWith a MACHINE collation sequence, which earlier FoxPro versions use (and to which FoxPro 2.5b still defaults), each character in the code page, whether it's a Roman character, an accented character, or a line-drawing character, has a unique "sort weight" determined by its position in the code page. In a majority of code pages, all accented characters appear after the unaccented characters. In this situation an "('a' with an umlaut)" sorts after "z", which isn't correct in most languages (although it is true in Swedish, for example). Furthermore, in most languages accented characters sort after their unaccented counterparts, but only if the unaccented versions of all characters being compared are the same. For example, in German, "('a' with an umlaut)" sorts after the unaccented "a", but the string "('a' with an umlaut)a" sorts before the string "ab" because the second character "a" is less than the second character "b". In this way, characters are interleaved in many cultures. FoxPro 2.5b supports a number of new collation sequences to correctly sort in many languages. These sequences take into account all the complex rules of the language (including two-to-one, three-to-one and one-to-two mappings). The following collation sequences were available when this README was created. The code pages for which these collation sequences are defined are also included.
If you specify a collation sequence in the SET COLLATE command as a string
literal, enclose the collation sequence in quotation marks. Don't enclose
the collation sequence in quotation marks if you specify a collation
sequence in your FoxPro configuration file (CONFIG.FP or CONFIG.FPW).
If you use the SET COLLATE command to specify a collation sequence that isn't supported by the current code page, FoxPro generates an error. If you specify a collation sequence in your FoxPro configuration file that isn't supported by the current code page, the collation sequence defaults to MACHINE. If you specify a collation sequence in the International panel in the View window, the collation sequence names appear in longer forms. For example, the NORDAN option appears as Norwegian & Danish, and the SWEFIN option appears as Swedish & Finnish. For additional information about collation sequences, see SET COLLATE in Help.
3 Case-Sensitive Collation SequencesTwo case-sensitive collation sequences are available in FoxPro: the familiar MACHINE sequence, the default sequence in earlier FoxPro versions, and the sequence named UNIQWT. UNIQWT is a "unique weight" sort in which each accented character sorts strictly after its unaccented counterpart (unlike the interleaving of accented characters described earlier). While the collation sequence with UNIQWT isn't strictly culturally correct as with GENERAL, it may aid developers in migrating their applications from earlier FoxPro versions. One reason is that upper- and lower-case letter are treated distinctly as they were in earlier FoxPro versions. Another reason is described in the section titled "How do the SEEK and SKIP commands work?"
4 How do the SEEK and SKIP commands work?The SEEK command accepts an expression. FoxPro transforms that expression into a sort key which it compares to keys in the master index or tag. SEEK then positions the record pointer at the first index entry that's greater than or equal to ( >= ) the supplied key. With a machine sort, SEEK finds a match if there is one. The UNIQWT sort has the same property. But when FoxPro uses the new language-specific collation sequences to create indexes, only the alphabetic part of the key is considered and any diacritical marks are ignored. In other words, even if you SEEK "('a' with an umlaut)bc" you may find "abc". Note that partial searches (where you search for part of the field) using SEEK may not return the results you expect when the current collation sequence is not MACHINE or UNIQWT. FoxPro behaves this way for the following three reasons: 1) Performance. 2) Consistency with the SKIP command. 3) Consistency with the SET NEAR command. To have SEEK and SKIP find only those records that exactly match accented characters, you must either SET EXACT ON or use an index tag created with the MACHINE or UNIQWT collation sequences. Note that SEEK and SKIP use the collation sequence of the master index or tag, and ignore the current collation sequence. SEEK can't be used unless there is an index is active.
5 Alternatives to SEEK and SKIPIf you use accented characters, use one of the following methods to search a table: 1) Construct a loop with SCAN FOR ... ENDSCAN. 2) Use LOCATE FOR ... CONTINUE. LOCATE and SCAN use an index if one is active, and they have two very significant advantages over SEEK when data contains accented characters. First, both LOCATE and SCAN remember the condition with which they were invoked, so they can be used for looping on a condition. SEEK, on the other hand, simply positions you somewhere in the index, and SKIP continues down the index from that point. With international data, this may not give you the results you want. Second, LOCATE and SCAN are diacritically-sensitive, whereas SEEK isn't. In addition, both LOCATE and SCAN can be fully optimized by Rushmore if the current collation sequence is MACHINE or UNIQWT; otherwise partial optimization will occur. The ORDER BY clause of the SQL SELECT command uses the current collating sequence, which is returned by SET("COLLATE")).
6 Additional Recommendations1) If you aren't concerned with indexing accented characters in a language- 2) For the best performance when using a collation sequence other than
3) Most international users will want accented characters in all fields to
4) If you create cross platform applications, you should avoid using
5) FoxPro 2.5b can automatically translate accented characters in most
6) Do not mix programs created on different FoxPro platforms in a project.
7) If you have a project created in FoxPro for MS-DOS version 2.0 and the
8) If you're developing a cross-platform application, avoid using
9) The MS-DOS file system is case-insensitive and requires uppercase file
7 New Code PagesThe following code pages are now supported:
Byte 29 in table headers contains the code page identifier. The following
table lists the code page and the corresponding code page identifier in
hex.
8 CPZERO ProgramIf you accidentally specify the wrong code page when you open a table that isn't marked with a code page, run CPZERO.PRG to reset the table's code page to zero. CPZERO is a FoxPro program that is automatically installed in your FoxPro directory. Before you run CPZERO, make sure that the table whose code page you'll reset isn't open. When you run CPZERO, you are prompted for the name of the table to modify.
9 Corrections to the Help File
Configuring FoxPro and International/X-Platform TopicsThese FoxPro 2.5b help file topics contain the following line:
This line is incorrect and should read:
International/X-Platform TopicThis help file topic contains the following line: For example, if the current collation sequence is GENERAL, both of these return true (.T.):
"Stra('a' with an acute accent)e" == "Strasse" will always return .F., not
.T. as it states in this topic. A strict machine comparison is performed by
==. All characters in each string are compared, including trailing blanks.
For more information about comparisons using = and ==, see SET EXACT in the
"Language Reference" or the FoxPro help facility.
Additional reference words: FoxDos 2.50b
KBCategory: kbreadme
KBSubcategory:
|
|
Last Reviewed: April 18, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |