Re: Environment variables and 4GL
Posted in 1992
>> From uunet!rmy.emory.edu!informix-list-owner Mon Jan 13 16:57:46 1992 >> From: uunet!bogart!mfaurot (Michael Faurot) >> Subject: Re: Environment variables and 4GL >> To: informix-list-owner@rmy.emory.edu >> Sender: uunet!bogart!mfaurot >> >> > Read the Shell-Variable DBPRINT into Your 4gl-Program, change it, when >> > You want and use OUTPUT TO PIPE. I'm using this construction do print >> > normal paper with hopper 1 or printer A and to print labels on printer B >> > or with hopper 2. I use DBPRINT and a second Shell-variable DBETIK >> > (Etikett is the german word for label). >> >> What is the means by which you are accessing the value of the DBPRINT >> variable from within your 4GL program? I'm not a regular 4GL >> programmer, but I was looking through the manuals the other day and >> could not find anything in the index or appendices that told me how to >> do it. I can see how to do it easily enough by calling an external C >> function and from within C using the getenv() system call, but isn't >> there any easier way from within 4GL itself? >> >> Thanks >> >> | Michael Faurot | Domain: mfaurot@bogart.UUCP | >> | ------- ------ | UUCP: ...uunet!media!ka3ovk!irscscm!bogart!mfaurot | The fgl_getenv() function can be used to get the value of an environment variable. It is new to 4.1 and is documented in the 4.1 Reference Supplement. -- Alan Denney # aland@informix.com # {pyramid|uunet}!infmx!aland "The driver says, 'One more cup of coffee and I'll be all right...' 'Pop a Bennie, another Bennie'..." - The Bobs, "Bus Plunge"