BUG: Report Variable Not Released After Report Runs
ID: Q186088
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, versions 3.0b, 5.0, 5.0a, 6.0
-
Microsoft Visual FoxPro for Macintosh, version 3.0b
SYMPTOMS
Under certain circumstances, a variable defined within a report is not
released after closing the report or after printing.
RESOLUTION
Here are two resolutions:
- Issue a RELEASE ALL LIKE <variable name> command after the report
completes printing or after previewing the report.
-or-
- Place the code to modify, to print, or to preview the report in a
program or procedure. Since the scope of variable is local, the variable
disappears when the procedure or program finishes running.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
In the example below, a report variable remains in memory after closing or
printing the report.
Steps to Reproduce Behavior
- Open the Employee.dbf table.
- Create a Quick Report based on the Employee table.
- Add a memory variable named Leftover to the report.
- Save the report with the name Ztest.frx and close the report.
- A reference to the variable appears on the desktop after you type the
following code in the Command window and press ENTER:
DISPLAY MEMORY LIKE Leftover
- Next, type the following in the Command window:
CLEAR ALL
REPORT FORM Ztest PREVIEW
- Close the Preview window without printing the report and repeat step 5.
A reference to the Leftover memory variable appears on the desktop but
the variable does not remain in memory.
Additional query words:
kbDSupport KBDSE kbVFp500bug kbVFp500 kbVFp300bug kbVFp300b kbvfp600
Keywords :
Version : MACINTOSH:3.0b; WINDOWS:3.0b,5.0,5.0a,6.0
Platform : MACINTOSH WINDOWS
Issue type : kbbug