Microsoft KB Archive/119225

{| = @ ... M Can Be Used in BROWSE PICTURE Clause =
 * width="100%"|

ID: Q119225

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5x, 2.6
 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6

SUMMARY
Contrary to page L3-238 of the "Language Reference," you can use the @M picture editing code with the BROWSE :P command.

MORE INFORMATION
To limit what data can be entered in a field during a BROWSE, you can use the @M picture editing code. For example, if you want the user to fill a field called MARRIED only with "YES" or "NO", you can use the following BROWSE command:

BROWSE FIELDS married :P="@M YES, NO" The user can now type "n" to select "NO" or "y" to select "YES". The user can also press the SPACEBAR to cycle through the choices. Another example of using @M is for a field called "OS" (operating systems). The BROWSE statement in this case could look something like this:

BROWSE FIELDS os :P="@M MS-DOS, MAC, OS/2, UNIX"