Microsoft KB Archive/135111

= BUG: "Feature Not Available" Error If READ in Form of Formset =

Article ID: 135111

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q135111



SYMPTOMS
Running a Visual FoxPro formset results in the error "Feature Not Available" when a READ is executed in the Load event of a form.



CAUSE
A READ in the Load event of a form in a formset causes the error. However, if the form is not contained in a formset, the error doesn't occur.



WORKAROUND
There are several workarounds. The READ must be removed from the Load event of the form in order for the form to run in a formset. Here are some possible workarounds:
 * Place the READ in the Load event of the formset.
 * If the READ is being used to activate a window, perhaps a message box can be used as an alternative to the window.
 * Remove the formset.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
 Create a new form. Within the Form Designer, on the Form menu, click Create Form Set.  Add the following code to the Load event of the form: DEFINE WINDOW confirm FROM 1,1 TO 10,10 ACTIVATE WINDOW confirm x= " " @ 5,5 GET x  READ RELEASE WINDOW confirm  Run the Form. The error "Feature Not Available" will occur. To resolve the issue, open the form in the Form Designer. Then on the Form menu, click Remove Form Set, and run the form.

Additional query words: kbvfp300 kbvfp500 kbvfp600

Keywords: kbbug KB135111

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.