Re: Problem with WingZ external tool
Posted in 1992
In article <1992May28.043323.12489@county.oz.au> porum@county.oz.au (Peter Orum) writes: > >Now, can you tell me how I can ensure that the external function is loaded >automatically, and only once. Is there an autoload type macro. I've tried >'on activate', but that executes every time the mouse goes into the >window. There are several ways to do this. 1. As already posted, do a 'get external/script' in a Startup.scz. 2. If this is an application, do the 'get external' when initially starting 3. If you want to see if the script or external is loaded, and continue using the activate event, simply call some function that returns a known va lue. For example, create a function called 'loaded()' that returns some non- zero value. Then your activate script becomes on activate if not external_name:loaded() get external external_name end if end activate Note that this will take advantage of the fact that Wingz won't report it 's inability to call the function as an error. You didn't hear it from me, but all this will become much easier in 2.0. David Coburn coburn@informix.com Client Services Engineer ...uunet!infmx!coburn Informix Software, Inc. ========================================================================== Opinions found here are those of the author, and not necessarily those of Informix. ==========================================================================