Article ID: 195514 - Last Review: October 15, 2002 - Revision: 1.0 FIX: Error Loading File When Converting a 2.6 Form in VFP 6.0
This article was previously published under Q195514 On This PageSYMPTOMS
When you open a converted 2.6 form in Visual FoxPro 6.0, the following
error message appears if the converted 2.6 form has a radio button control
or a line object:
Error Loading File - record number<n>...ColorSource: Expression
evaluated to an illegal value.
CAUSE
The value three (3) is assigned to ColorSource for both the option group
control and the line object during the conversion. A ColorSource property
of three is invalid for both of the controls in Visual FoxPro 6.0. Invisible buttons have this problem, too. Shape objects might also have this problem. RESOLUTION
There are at least three methods for resolving this problem. They are
listed below. NOTE: Before attempting any of these resolutions, back up your files. Method 1
Method 2This method works for Invisible Buttons as well as Option Groups.Modify the Convert.app as follows: NOTE: The source code for Convert.app is located in the ..\VFP98\Tools\Convert folder.
Method 3Use the Visual FoxPro Transformer application.NOTE: This is probably the best solution because other aspects of converted forms can be changed with the Transformer, many forms at one time. The Transfrm.app is located in the ..\VFP98\Tools\Transfrm folder. Note that as the Help file states:
"The Transformer is not supported by Microsoft Support Services
either electronically or via telephone."
To learn more about the Transformer, go to the Transformer topic in Visual
FoxPro Help. "Help Transformer," without quotes, typed in the Command
window should bring it up.
To use the Transformer to resolve the problem described in this article, follow these steps after doing a Functional conversion on the form(s):
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3 for Options Groups. This problem was not corrected for Invisible Buttons. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why (http://support.microsoft.com/kb/194022/EN-US/ ) 194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed (http://support.microsoft.com/kb/194295/EN-US/ ) MORE INFORMATIONSteps to Reproduce Behavior
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |






















Back to the top