Sid,
The EXECSCRIPT() writes the code to a temp PRG, compiles and runs it. That may explain why it cannot see your forms.
>I am using an activex toolbar/menubar which is built dynamically from a memo field in my menu table. When I went to install this at my client's site I received the error .scx file not found, even though the form was included in my app.
>
>I have done all the regular stuff, delete the app, recompile all files, removed the form and readded it. Nothing seems to work. In digging a little deeper I have isolated it down to the interaction of the app and Execscript. I am building the itemclick event of the activex object utilizing the execscript and the memo field from my menu table. If I move the exact same code to a VFP command button the form comes up just fine. Try to click the toolbar and it can't find the screen.
>
>My question is what is the interaction of the Execscript commands and the app itself. Does the Execscript lose all reference to where it was called? Is there anyway around this? Or am I just missing something?
>
>Obviously, I don't want to distribute my scx files with my app. But, I also like the data driven menu/toolbar I've developed, so I don't really want to have to trash it.
>
>Any thoughts or suggestions???????
>
>Thanks,
>-Sid Meyers.
--sb--