Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing memo code and calling form
Message
From
21/02/2013 01:04:43
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01566590
Message ID:
01566635
Views:
54
>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!

How about:
1. A "helper" procedure in the EXE that launches the form for the called script (make sure this "helper" is visible in the call stack either by being part of a SET PROCEDURE or simply being a procedure defined in a PRG that is already within the call stack)
2. Define the form as a class and make sure the classlib is already loaded.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform