Re: Euphoria feature request
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Dec 10, 2003
- 453 views
On Tue, 09 Dec 2003 19:31:14 -0500, "Philip D." <philip1987 at hotmail.com> wrote: >If it is supported ( the user downloaded my support file >for the editor ) OK, that simplifies the problem loads. >I don't know how to include all the support files when I do not know ahead >of time which files are there, and I don't know how to call the common >routines ( such as openFile ) that would be present in every support file ( >because there will be namespace problems ). My solution would be to create a start-up file, eg: editor.exw: include editexw.e include editpdf.e include mainedit.e <end of editor.exw> That's it, three (or so) lines, so it is easy to delete/recreate such a file as & when additional components are downloaded. You cannot use namespaces, each common routine (eg openFile) has to be uniquely named (eg openExwFile), but you can build the required string and use routine_id (if it does not return -1) to call it, or (if it does return -1) prompt to download the required component. Hope that helps,