Vince, I do something similar, with code I compile and run on the fly, so I guess this approach will work with execscript as well.
Have the script call a program compiled into the exe, passing it a parm the program can interpert to mean "do form xyz". For example, a prg called 'runform' to launche a form would be called as: do runform WITH 'my_form' and let the compiled program run the command. Bill > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Vince Teachout > Sent: Friday, January 11, 2008 8:39 PM > To: [EMAIL PROTECTED] > Subject: Any way for ExecScript() to see compiled forms? > > > I just finished resolving a problem I had where I needed to > DO FORM X on > Startup, and also have it available as a menu option. Form X has 2 > buttons, one that does DO FORM Y, and one DO FORM Z. > > The form would not start up during the startup code, with a "form not > found error", but all forms would work fine if called from > the menu. The > menu code was "DO FORM X". > > I had been trying to implement a generic startup tasks function, data > driven, that would do whatever was in a DBF field via VFP > ExecScript(). > The code in the field to be run by ExecScript() was also "DO FORM X". > > Apparently though, ExecScript() doesn't know anything about any forms > compiled into the EXE - I would have to have an actual physical form, > and specify the RUNTIME path, which is not possible in our case. Of > course, it couldn't find the other two forms, either. > > For now, I hard-coded it, which will get me by, but is there > a way I can > make these compiled forms visible to ExecScript()? > > Thanks. > -- > Vince Teachout > Senior Programmer/Analyst > Recordables, Inc. > 518-733-9411 > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

