OK, you do call form from exe! And therefore you get an error. Because exe use a class, then exe can see objects belong to the class. You do not have form as class object or property, I believe. In this case you may need to create a class from the form and include it as object into APP class.
>I call the .APP from the .EXE. The exe calls the form by using a custom method that I created in my main application object (goApp). The application object is a .VCX which is included in the .EXE. I instantiate the application object in my .EXE with the following code:
>
>SET CLASSLIB TO uapp ADDITIVE
>goApp = CREATEOBJECT("Application")
>
>Where goApp is a public variable and uapp is a .VCX with my application code in it. I know that my custom method in goApp works when I include the source code for the forms with my distribution. But, if I don't include the .SCX form files with my distribution than I get the error message that the .SCX file does not exist. But, I shouldn't need it since it should be included in the compiled .APP file.
>
>I thought maybe it would help if I included the uapp.vcx file in my project for the .APP, but that didn't seem to help anyway because it is instantiated from the .EXE so it shouldn't matter.
>
>Thanks again for your help.
>
>Sincerely,
>Don
>
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only