Re: Is sqlexit available on R4GL?
Posted in 1997
>From: Jacob Salomon <jake@apparel.net> >Date: Tue, 18 Mar 1997 10:07:53 GMT >X-Informix-List-Id: <news.35467> > >Andrew Cilia wrote: >> Does anybody know if there is an eqivalent call to sqlexit on >> R4GL that I can use to kill off a back end connected to a >> menu processor (Informix based) before going into a menu >> option? > >take a look at page 4-83 of the 4GL Reference (6.0) that clearly >documents this function as a builtin. Hi, Despite anything that it says in any I4GL manual, sqlexit() is not callable from I4GL. It does not have an I4GL-compatible call interface. It is an ESQL/C function that is documented in the I4GL manual for your (in)convenience. You have to wrap it in some simple C code to use it from I4GL: int i4gl_sqlexit(int n) { if (n != 0) fgl_fatal("i4gl_sqlexit", 0, -1318); sqlexit(); return(0); } In the case of the p-code system, you then have to add this function to a custom runner, adding an entry to the usrcfuncs structure: extern int i4gl_sqlexit(int); ... { "i4gl_sqlexit", i4gl_sqlexit, 0 }, ... I'm pretty sure this information should be available via either the FAQ or a search of the various sources of archives; I've said much the same on previous occasions. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>