One can base a scx on a form class. But If Sys(16) is run within class code the scx inherits, the vct file is reported correctly, that's where that code is running.
Sys(1271,Thisform) helps anyway. When you do the scx form and Sys(1271) runs within the inherited code within the class it reports the scx file.
that worked well so far.. but, here's where i am stuck and i don't know if i should make another topic for that.
my app user has the option to "add" a link to any of the forms to their main screen. upon clicking on the new link created,
lcScript = GetUserFav(lnIID) && gets the command for that link
Execscript(lcScript)
--------------------
most of the commands are: do form someform.scx
problem: someform.scx could not be found (in run time)
however, from the menu or the pre-existing button that also launches that form, it works.. but, those are ocmpiled in the project, and the commands in the UserFav table are not.
so, is that why execscript() can't find the form? and how do i go about making it work?
Macrosubstitution works as long as it's just one command.
You can use execscript, but be aware execcscript compiles the script as a prg, so you have an fxp in the temp folder which is executed. That's still running inside of the process and so should find the scx anyway.
What is doable in any case is NewObject("formclass","vcxname","some.exe", param1, param2,...), or DO some.prg IN some.exe and you can parameterize a script and pass in goApp or some other reference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.