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.
- 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.
- In the Command window, type:
SET DEFAULT TO \FOXPRO25\GOODIES\PROCOLOR
MODIFY PROJECT procolor
- After the Project Manager window appears, select PROCOLOR.PRG from the
list and choose the Edit button.
- 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.
- Select the CSET screen and choose the Edit button. This will activate
the Screen Builder.
- From the Screen menu, choose Screen Layout, and then select the Setup
check box.
- 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.
- Choose the Build button. Select Build Application and choose OK to
rebuild PROCOLOR.APP.
- 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.