Re: GLOBALS declaration in Informix-RDS and 4J's
Posted in 1998
Vitorino Ribeiro wrote: > > Hello everyone > > I'm using (with success) the following syntax in my Informix 4GL (RDS) > source files and 4J's source files: > > GLOBALS "glb_file1.4gl" > GLOBALS "glb_file2.4gl" > GLOBALS "glb_file3.4gl" > > FUNCTION f1() > ... > ... > ... > END FUNCTION > > We are using the following products: > - Informix 4GL (RDS) version 6.04.UC2 > - 4J's compiler version 2.02.1e6l6 > - Informix SE (Standard Engine) 7.23.UC1 > - SCO OpenServer 5.0.2 > > We had no problems compiling and linking the above example (but we had to be > careful to not repeat the same variable in the 3 globals files, of > course...). Both Informix and the 4J's compiler seem to "concatenate" all > the globals variable and we had no probelms... > > But is this method supported by Informix?... In the Informix-4GL Reference > (for Version 6.0, volume one) they had no example like that. The 2 methods > on the Informix Manual are: > - only one "globals" file per 4GL module: > globals "glb_file.4gl" > > - explicity declared globals variables: > GLOBALS > DEFINE > var1 SMALLINT, > var2 LIKE sometable.somecolumn, > ... > ... > END GLOBALS > > So my question is: can I use several globals files: > GLOBALS "glb_file1.4gl" > GLOBALS "glb_file2.4gl" > GLOBALS "glb_file3.4gl" > > ... or should I use only one globals files: > GLOBALS "glb_file.4gl" > > Thanks in Advance! > > -- > Jose Vitorino Barata Ribeiro > SINFIC - Sistemas de Informacao e Consultoria, SA > sinfic@esoterica.pt > vribeiro@sinfic.hpv.pt The 6.02 release notes for I4GL state: USER CAN NOW HAVE MULTIPLE "GLOBALS" FILES IN THE SAME SOURCE FILE ================================================================== This note applies to I-4GL, I-4GL/RDS, and 4GL Interactive Debugger. Simply, the following code segment: GLOBALS "file1.4gl" GLOBALS "file2.4gl" was previously not allowed; more than one GLOBAL file specification in a 4GL file was not permitted. Now, it is. Perhaps I should modify my signature file to read If all else fails, read the instructions *and the release notes*. -- Peter Lancashire Information Systems Specialist, Bayer plc Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK Tel: +44-1635-562258, Fax: +44-1635-562281 --- If all else fails, read the instructions. All opinions are my own and not those of Bayer plc. My Internet plumbing does not allow me to mail and post news together. Sorry. --- Join Infuse, the UK Informix User Group at http://www.infuse.org.uk/