@ ... M Can Be Used in BROWSE PICTURE Clause

Last reviewed: June 27, 1995
Article 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"

REFERENCES

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.