BUG: Report Preview with Form's Name Clears Object Reference (155463)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q155463 SYMPTOMS
Issuing a REPORT FORM PREVIEW command on a report that has the same file
name as a form that is running causes the form to lose its object
reference. If you attempt to reference the form object in code, this error
message appears:
Object not found
WORKAROUND
If you have a form called Customer and issue the following command, an
object reference named Customer is created for the form:
DO FORM Customer
Preview a report named Customer by issuing the following command:
REPORT FORM Customer PREVIEW
The customer object now references the Report Preview window. When the
Report Preview window is closed, the customer object is released. Work
around this problem by giving your forms a different object reference than
the reports with the same name. Do this by using the NAME clause in the DO
FORM command. For example, to give the Customer Form an object reference of
Custform, you would issue the following command:
DO FORM Customer NAME Custform
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbBug kbdisplay kbother kbProgramming KB155463 |
---|
|