Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object not contained in form
Message
 
 
To
20/11/2003 10:07:34
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00851871
Message ID:
00851895
Views:
8
Jason,

This sounds like an error being thrown by the class code itself, not VFP.

Instead of using CreateObject() does it work if you use
thisform.AddObject( "oPublisher", ... )
...
thisform.oPublisher.DoItsThing()
>I am using a modal form to allow the customer to import data into an accounts software package.
>
>Within this form, there are 2 Objects created, 1. To Import the Data, 2. To Publish a report.
>
>I have been told by the accounts software writers that the Import object changes the current path to where the object is located, but does not reset the path to what it was.
>
>So in my form before I call the Import object, I store the full path to a variable using the following "lcPath = SYS(5)+SYS(2003)". I then execute the Import Object, then after releasing the Import Object I reset the path using the "SET DEFA TO &lcPath".
>
>I then call the Publish Object to Print to screen the report displaying the import results. I do this in the same way I created the Import Object. When the Report Preview window appears on the screen I get a message "Object not contained in form" and the system reverts back to the main menu.
>
>Does anyone know what is happening here.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform