PRB: PROCOLOR.APP Doesn't Work w/ FoxPro Ver 2.5 Color Sets

Last reviewed: February 16, 1996
Article ID: Q112048
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0 and 2.5

SYMPTOMS

When you are using PROCOLOR.APP in FoxPro version 2.5 for MS-DOS, you receive error messages referring to FoxPro version 2.0 for MS-DOS color sets.

CAUSES

There are two possible reasons for these error messages; one or both of these reasons may be causing the problem.

  • You have not updated your FoxPro version 2.0 color sets to 2.5.
  • PROCOLOR.APP was written by a third-party vendor. Version-specific information related to color sets is hard-coded into PROCOLOR.APP. At the release of FoxPro version 2.5 for MS-DOS, this version-specific information had not been updated.

WORKAROUND

The hard-coded version-specific color set information in PROCOLOR.APP was updated in the version shipped with FoxPro version 2.5a for MS-DOS.

If you are using FoxPro version 2.5 for MS-DOS, source code for PROCOLOR.APP is shipped with FoxPro for MS-DOS. You can use PROCOLOR with version 2.5 color sets if you make the following modifications to PROCOLOR and to your color sets in the resource file.

  1. Update your FoxPro version 2.0 for MS-DOS color sets to 2.5 by using the FIXUSER.APP utility. Assuming you have FoxPro installed in the C:\FOXPRO25 directory, you will find FIXUSER.APP in the C:\FOXPRO25\GOODIES\MISC directory.

    To run FIXUSER.APP, issue the following commands in the Command window:

          SET DEFAULT TO \FOXPRO25\GOODIES\MISC
          DO fixuser
    

    Follow the instructions in the dialog window.

    IMPORTANT: Be sure to select an existing FoxPro version 2.0 resource file, not a FoxPro version 2.5 resource file. The default resource file name is FOXUSER.DBF.

  2. In the Command window, type:

          SET DEFAULT TO \FOXPRO25\GOODIES\PROCOLOR
          MODIFY PROJECT procolor
    

  3. After the Project Manager window appears, select PROCOLOR.PRG from the list and choose the Edit button.

  4. From the Edit menu, choose Find, and locate the following command line:

          LOCATE FOR ALLTRIM(type) == "PREF2.0"
    

    This command line is located in the SETEXIST() function. Replace "2.0" with "2.5". Save the changes by pressing CTRL+W. This will close the edit window and return you to the Project Manager window.

  5. Select the CSET screen and choose the Edit button. This will activate the Screen Builder.

  6. From the Screen menu, choose Screen Layout, and then select the Setup check box.

  7. Find both occurrences of the string "2.0" and replace them with "2.5". Save the screen by pressing CTRL+W. This will close the Screen Builder and return you to the Project Manager window.

  8. Choose the Build button. Select Build Application and choose OK to rebuild PROCOLOR.APP.

  9. Move the updated version of PROCOLOR.APP into the main FoxPro directory, overwriting the existing file.

MORE INFORMATION

PROCOLOR is manufactured by a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.


Additional reference words: FoxDos 2.00 2.50 colour picker scheme err msg
errmsg
KBCategory: kb3rdparty kberrmsg kbprb
KBSubcategory:


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: February 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.