Microsoft KB Archive/174916: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 12: Line 12:
<div id="TitleRow">
<div id="TitleRow">


= <span id="KB174916"></span>PRB: APPEND PROCEDURES Causes &quot;Feature Not Available&quot; in Runtime =
= <span id="KB174916"></span>PRB: APPEND PROCEDURES Causes "Feature Not Available" in Runtime =




Line 49: Line 49:
== SYMPTOMS ==
== SYMPTOMS ==


&quot;Feature is not available&quot; error occurs when issuing an APPEND PROCEDURES command in a FoxPro executable.
"Feature is not available" error occurs when issuing an APPEND PROCEDURES command in a FoxPro executable.


</div>
</div>
Line 84: Line 84:
<li>Build an executable, quit Visual FoxPro, and run the executable.</li></ol>
<li>Build an executable, quit Visual FoxPro, and run the executable.</li></ol>


The &quot;Feature is not available&quot; error will occur on the APPEND PROCEDURES command.
The "Feature is not available" error will occur on the APPEND PROCEDURES command.


</div>
</div>

Latest revision as of 10:07, 21 July 2020

Article ID: 174916

Article Last Modified on 5/12/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
  • Microsoft Visual FoxPro 3.0b for Macintosh



This article was previously published under Q174916

SYMPTOMS

"Feature is not available" error occurs when issuing an APPEND PROCEDURES command in a FoxPro executable.

CAUSE

The COMPILE feature is not available in a distributed application. The APPEND PROCEDURES command performs an implicit COMPILE of the database when stored procedures are added.

STATUS

This behavior is by design.

MORE INFORMATION

This error message occurs because Visual FoxPro attempts to recompile the database code when the APPEND PROCEDURES command is issued. Visual FoxPro cannot perform this action in the runtime environment.

Steps to Reproduce Behavior

  1. Create a database using the following command:

          CREATE DATA mytestdata
  2. Create a procedure file with the command MODIFY COMMAND myprocs and add the following lines of code:

          PROCEDURE myproc
          ENDPROC
  3. Create a project with the following MAIN program code:

          OPEN DATA mytestdata
          APPEND PROCEDURES FROM myprocs.prg
  4. Build an executable, quit Visual FoxPro, and run the executable.

The "Feature is not available" error will occur on the APPEND PROCEDURES command.

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

139386 Features not Available in a Distributed Application


Keywords: kberrmsg kbprb KB174916