PRB: APPEND PROCEDURE FROM Does Not Bring Procs in for Viewing (194524)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q194524 SYMPTOMS
Using APPEND PROCEDURE FROM to import a procedure into a database with no
existing stored procedures does not show that procedure in the Stored
Procedures edit window of the database.
RESOLUTION- Ensure the first stored procedure code added in a database is entered
through the editor.
- Open and close/save the procedures editor window before appending the
new procedure using the following two lines of code:
KEYBOARD "{ctrl+w}"
MODIFY PROCEDURES
******************Begin Working Code**********************
#DEFINE CRLF CHR(13) + CHR(10)
x="PROCEDURE TEST1" + CRLF + "X=1" + CRLF + "ENDPROC" + CRLF
STRTOFILE(x,"TESTPROC.TXT")
CREATE DATA TEST
KEYBOARD "{ctrl+w}" && Added to close Procedure Editor.
MODIFY PROCEDURES && Opens the Procedures Editor Window for saving.
APPEND PROCEDURE FROM TESTPROC.TXT
LIST PROCEDURES
MODIFY PROCEDURES
MODIFY FILE TESTPROC.TXT
*******************End Working Code************************
Modification Type: | Major | Last Reviewed: | 1/17/2001 |
---|
Keywords: | kbDatabase kbDSupport kbprb kbXBase KB194524 |
---|
|