I use execscript to update tables if I need to add fields and the like on installed programs. I put a header and footer in a text file to check its real then take the remainder and execute it.
Allen
-----Original Message----- From: profoxtech-bounces At leafe .DOT com [mailto:profoxtech-bounces@leafe.com] On Behalf Of Malcolm Greene Sent: 31 October 2004 01:57 To: profoxtech At leafe .DOT com Subject: Application design to accept plugins
I'm also thinking of allowing users to write plugins in VFP source code and use EXECSCRIPT() to execute their code. My understanding is that EXECSCRIPT() code does _NOT_ have any access to the calling application's work areas, variables, SET values, etc) and so could safely be used as a type of "external scripting language". I'm choosing EXECSCRIPT() vs. COMPILE because any code run via the COMPILE command will have access to my application's internal environment.
©2004 Allen Pollard |