ID: Q119225
The information in this article applies to:
Contrary to page L3-238 of the "Language Reference," you can use the @M picture editing code with the BROWSE :P command.
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"
FoxTalk, July 1994, page 32, author Tran Hong
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.60 picklist toggle limit docerr KBCategory: kbprg kbdocerr KBSubcategory: FxprgBrowse
Last Reviewed: June 27, 1995