Thanks, I'll give it a try.
I forgot to mention that this code works when I run the executable from my development machine b/c it does find the actual physical form in the path; but when I'm running the exe on a folder on the network then of course it doesn't find the physical form and I'm guessing that when running the code from the memo field the code is "outside" the scope of the exe and thus can't find the form which is part of the exe?
>>Hi,
>>
>>I'm running an exe and there's a part of the program that uses EXECSCRIPT() to run some code in a memo field. The problem I have is that the code in the memo field is trying to run a form but I'm getting the error "File 'frmFilter' does not exist", I guess since the code is not in the exe it cannot see the form. Any workarounds to be able to run the form?
>>
>>Thanks!
>
>Try instead of EXECSCRIPT to use:
>
>lcName = SYS(2015)
>STRTOFILE(MemoField, FORCEEXT(lcName, "PRG"))
>COMPILE (FORCEEXT(lcName, "PRG"))
>DO (FORCEEXT(lcName, "FXP"))
>ERASE FORCEEXT(lcName, "*")
>
>
>NOT TESTED!