Re: 4GL and $DBNAME
Posted in 1998
Danail Danailov — — source: Informix-list mailing list archive (1991-1998)
Before MAIN write: DATABASE <dbname>. <dbname> is database with table for variable definition. Best regards, Danail At 04:24 PM 22/06/98 -0500, Bruce McDougald wrote: >I want to write 4gl code that will grab the database name from an env. >variable at compile time. My problem is that the compiler is choking on >my variable definitions. Is there a way around this? > >EX: >main > call init() > call process() >end main > >function init() > define dbname > let dbname = fgl_getenv("DBNAME") > > database dbname >end function > >function process() > define l_var like table.column ## Compiler will choke here >.... >end function >