Re: Development area?
Posted in 1994
Paul Eccleston (Paul@ecles.demon.co.uk) wrote: > Some background:- [ deleted ] > Is there anyway that the database does not need to be specified until runtime? > We've attempted to set an enviroment variable called DATABASE and used the > following code in Informix:- > database "$DATABASE" > But this doesn't work. > Has anybody any suggestions, on how we can simply this procedure. -- Hi Paul, you can use your own environment variable which contains the database name with the following example: MAIN DECLARE dname CHAR(18) # the character-size is important LET dname = fgl_getenv("DATABASE") DATABASE dname . . . END MAIN This will work with 4GL V4.1 Hope this helps you Dirch +----------------------------------------------------------------------------+ | Dirch Scheer email: scheer@stadt-mh.de | | Amt 10-3 Tel. : +49 208 455 1006 | | Stadtverwaltung (snail-)Mail : Ruhrstr. 32 | | Muelheim an der Ruhr D-45468 Muelheim an der Ruhr | |----------------------------------------------------------------------------| | Inspiration gave them the motivation to move on out their isolation | +----------------------------------------------------------------------------+