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

ID: Q112048

2.00 2.50 MS-DOS

  kbprb

The information in this article applies to:

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.

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:   kbprb
KBSubcategory:
Keywords          : kb3rdparty kberrmsg kbprb
Version           : 2.00 2.50
Platform          : MS-DOS

Last Reviewed: May 21, 1998